react-router
react-router copied to clipboard
Declarative routing for React
### What version of React Router are you using? 6.3.0 ### Steps to Reproduce Run the following code: ``` function Child(props) { useEffect(() => { props.wrappedNavigate('./otherRoute') }, []); return }...
Fixes https://github.com/remix-run/react-router/issues/8809
### What is the new or updated feature that you are suggesting? I'm following the [v6 upgrade docs](https://reactrouter.com/docs/en/v6/upgrading/v5). It says > What did we miss? Despite our best attempts at...
[Docs]: Add info on how to migrate `StaticRouter` with `context` from v5 to v6 in the migration docs
### What is the new or updated feature that you are suggesting? I am trying to migrate a big repository with multiple frontend apps from `v5` to `v6`. For now,...
**Edit:** This might actually be a feature request - I wasn't sure if it's supposed to be possible or not. ### What version of React Router are you using? [email protected]...
I am using a screen reader to interact with my application. Moving between routes does not reset the focus, which would occur on a server-side render. Is there a fix...
### What version of React Router are you using? 6.3.0 ### Steps to Reproduce ``` const path = generatePath("/route/:name", { name: "includes *asterisk at the end*", }) ``` ### Expected...
### What version of React Router are you using? n/a ### The issue https://github.com/remix-run/react-router/blob/main/docs/getting-started/tutorial.md has stackblitz and CRA/vite instructions. Bundler options are going to use react 18 and vite 3....
### What is the new or updated feature that you are suggesting? NavLink's isActive prop has been removed in v6 either intentionally or accidentally. I suggest to bring it back....
### What is the new or updated feature that you are suggesting? update current route.path to allow more conditional regex paths for multiple conditions like in v5. v5 route: `/(wines|whiskeys|sakes|beers)/:id/:productName?`...