T
TanStack3y ago
extended-salmon

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
constant-blue
constant-blue3y 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
extended-salmon
extended-salmonOP3y ago
I Will give it a look, thanks

Did you find this page helpful?