arrow_backBACK TO DRILLS
Black BeltecosystemlockPREMIUM

TanStack Query isFetching vs isLoading vs isPending - Each Flag Tracks a Different Phase

In TanStack Query's useQuery, a developer wants a loading spinner to appear only on the very first fetch for a query key, not on background refetches triggered afterward. Which flag should drive that spinner?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.