Closed mayo7e closed 2 months ago
We have an example that uses Router-Router and its useNavigate hook. I recommend looking at that: https://github.com/auth0/auth0-react/blob/main/examples/cra-react-router/src/index.tsx.
If you believe there is still an issue with our SDK, please open an issue with more information to allow us to help troubleshoot.
Checklist
Description
When using the Auth0 React SDK with React Router v6, attempting to use useNavigate() results in the following error: Uncaught Error: useNavigate() may be used only in the context of a component. This issue occurs despite wrapping the application with or as required by React Router v6.
![Screenshot (20)](https://github.com/auth0/auth0-react/assets/100059302/00abd740-b3d8-47a4-bc89-6d413b817a6d)
Reproduction
Additional context
No response
auth0-react version
2.2.4
React version
18.3.1
Which browsers have you tested in?
Chrome