T
TanStack3y ago
frail-apricot

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
afraid-scarlet
afraid-scarlet3y 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
frail-apricot
frail-apricotOP3y ago
I Will give it a look, thanks

Did you find this page helpful?