TanStackT
TanStack3y ago
2 replies
nursing-lime

How to check if there's a currently used query in cache

I need to check if there's an active query being used in the UI. I tried with
queryClient.getQueryData | getQueryState (queryKey, {type:'active'})

but am always getting undefined.
Was this page helpful?