Replies: 2 comments
-
If you're using data mode, you can import the result of createBrowserRouter or similar functions, then do If you're using framework mode, it will depend if you're doing your fetch server-side. Since the server needs to send a redirect response to navigate the user, you need to use |
Beta Was this translation helpful? Give feedback.
-
@sergiodxa Thanks for your answer. Unfortunately when you use |
Beta Was this translation helpful? Give feedback.
-
Would be nice to have the ability to perform global navigation outside of React components.
I.e. quite a common use case in web apps is redirecting to
/unauthorized
page when you receive 403 error code from server for any request. Unfortunately it seems like this library does not allow to navigate in axios interceptors.Beta Was this translation helpful? Give feedback.
All reactions