consider useIsfetching to provide information of query as well #755
Replies: 1 comment
-
I would be interested in something like this as well, I wound up making my own custom hook in my own project so that I could basically filter For my use case, I have a loading spinner that shows for a section of the page if any of the queries inside of it are currently fetching, so I need to know if A or B are fetching, but I don't care about C.
Note, this is actually filtering by the "key name" since one of these queries has parameters and I only care if the "evaluations" query is fetching, not if "evaluations?thing=whatever" specifically is fetching, if that makes sense, that's why there's the awkward thing checking against So, the |
Beta Was this translation helpful? Give feedback.
-
Hi
Is it possible to add more options for
useIsfetching
hook, especially to know the details for the requests that are currently being fetched ?Beta Was this translation helpful? Give feedback.
All reactions