-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://remix.run/blog/react-router-v6 https://reactrouter.com/6.28.1/upgrading/v5 - Explicit `History` object manipulation was replaced with `navigate` function. - Similarly `Redirect` component was replaced with `Navigate` component. Also it now defaults to `push` so had to switch to `replace`. - Regex path had to be replaced with a custom validation logic (see `EntriesFilter` component): https://reactrouter.com/6.28.1/start/faq#what-happened-to-regexp-routes-paths - `Route` `path`s need to be relative. - `Link`’s `to` prop no longer accepts callback or state. - `Prompt` component was replaced with an unstable hook. Like before, it still does not handle `beforeunload` event. https://reactrouter.com/6.28.1/hooks/use-prompt#unstable_useprompt But it only works with data routers: https://reactrouter.com/6.28.1/routers/picking-a-router Yuck, I do not want framework, I just want a routing library. Dropping the feature for now.
- Loading branch information
Showing
18 changed files
with
333 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.