Skip to content
Discussion options

You must be logged in to vote

you can use the predicate option:

useIsFetching({ predicate: query => ['videos', 'suggestions'].includes(query.key) })

but keep in mind that there is no fuzzy matching when doing it like that. Alternatively, you can call useIsFetching twice and sum up the results.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nguyenyou
Comment options

Answer selected by nguyenyou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants