Open na2hiro opened 3 months ago
I'm using it with Remix currently and haven't run into that problem. Could be a new version issue. Definitely open to a pull request that supports both or even makes it a bit more generic if possible.
Probably the upcoming release of React Router v7 will let us import from react-router
everywhere including Remix apps and fix this
When I use in my Remix app, I get an error saying it's not wrapped with data router. If I copy paste
ElementScrollRestoration
and modify import fromreact-router-dom
to@remix-run/react
, it works.Can this library cover Remix usage as well?
Versions and setup
react-router-dom
: 6.21.0