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?
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?