TanStackT
TanStack14mo ago
2 replies
rubber-blue

How i can await revalidation in other component?

I have a react-query request hook with a specific key.
I invalidate this request by key in certain circumstances.
But in another component I need to await data is successfully received, can I somehow do await?
I tried to do this via queryClient, but nothing worked for me. Can you please tell me the way?
Was this page helpful?