Skip to content

Conversation

@lisandro52
Copy link
Contributor

I had an error with the ReactRouter6Adapter that kept telling me that the useNavigate() should be used inside a <Router> context.
I copied the Adapter to my project, changed the import from react-router to react-router-dom, and it started working again.
Leaving the PR in case it solves the same problem to someone else (and because we shouldn't be importing from react-router directly anyway).

@pbeshai
Copy link
Owner

pbeshai commented Sep 17, 2022

Ah great, thank you! This is in v2.1.1

@pbeshai pbeshai merged commit 826cde9 into pbeshai:master Sep 17, 2022
pbeshai added a commit that referenced this pull request Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants