Check the status of query?
I am performing a post, which thereafter I want to close my drawer but only after some of my queries are done refetching. Being that I dont have direct access to my queries, I went the route of checking the queryClient and using
getQueryState, however I can't figure out how to do a matchall with getQueryState so I am currently stuck looking at the queryCache and having to poll the state of each query to see if it is finished... is there a better way?2 Replies
xenial-black•4y ago
useIsFetching ?
rare-sapphireOP•4y ago
I thought about that but was hesistant since this was being done in a onAfterSave callback so it gets a bit messy