T
TanStack3y ago
rare-sapphire

createQueries, check when all the queries loaded

Is there a way to check if all queries loaded without looping them all and check isLoading , when using createQueries?
2 Replies
conscious-sapphire
conscious-sapphire3y ago
useIsFetching | TanStack Query Docs
useIsFetching is an optional hook that returns the number of the queries that your application is loading or fetching in the background (useful for app-wide loading indicators). `tsx
rare-sapphire
rare-sapphireOP3y ago
I Will give it a look, thanks

Did you find this page helpful?