Repository navigation
react-router v8 support #7632
|
I'd love to know when are the maintainers planning to provide support for react-router v8. Is it on the table yet or any open discussion or PR where one can contribute? |
Replies: 1 comment
|
I couldn't find an issue or PR for it yet, so it doesn't look like anyone has started on it. The current If you want to contribute, the adapter is small. Everything is in The part I'd check first against v8 is Opening a feature request issue to track it would be a good first step, and a good place to ask the maintainers whether they'd want it as a bump of this package or a separate one. |
I couldn't find an issue or PR for it yet, so it doesn't look like anyone has started on it. The current
@refinedev/react-router(2.0.4) still declaresreact-router: ^7.0.2as its peer dependency.If you want to contribute, the adapter is small. Everything is in
packages/react-router/src:bindings.tsxis therouterProvideritself (go,back,parse,Link), and the rest are the helper components (NavigateToResource,CatchAllNavigate,UnsavedChangesNotifier,DocumentTitleHandler).The part I'd check first against v8 is
use-prompt-workaround.ts, whichUnsavedChangesNotifieruses. It patchesnavigator.push/gofromUNSAFE_NavigationContext, which is exactly the kind of internal API that tends to…