Getting navigation context for routing #2561
Unanswered
jacksonHendric
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need a way to use a hook to get a navigation context. If the request returns a 401, I have an extended fetchBaseQuery function to navigate to a different screen (react native).
The issue is that you can't use hooks inside these functions.
Is there another way to handle automatic 401 routing or how do I get the navigation context to navigate?
Beta Was this translation helpful? Give feedback.
All reactions