TanStackT
TanStack4y ago
2 replies
then-purple

Is there a property to check if React Query is currently fetching something?

hey is there a property for something like "is there is anything fetching right now?", I mean something like isLoading but not specific to any single query, but to all queries.
basically "is react-query doing something right now?"

I need this to show a spinner while all of the queries are fetching, and when they're all done then show the page's content. To do this, I need something to be able to tell if React Query has finished all of its fetching.
Was this page helpful?