TanStackT
TanStack3y ago
3 replies
then-purple

How to use hooks in react-query global onError handler

Is there any way to use hook in onError handler since the queryClient is outside of a Component?

For example how i could open a Modal or a Notification component.
image.png
Was this page helpful?