react-router
react-router copied to clipboard
Declarative routing for React
### What version of React Router are you using? 6.22.3 ### Steps to Reproduce 1. Clone react-router repo and navigate into examples/navigation-blocking 2. Update react-router-dom to 6.22.3 (same issue on...
### What version of React Router are you using? 6.22.3 ### Steps to Reproduce Case 1 - Create a router to test * path ```tsx ``` Case 2 - Create...
### What version of React Router are you using? 6.22.0 ### Steps to Reproduce ``` import * as React from "react"; import { createContext, Dispatch, ReactNode, SetStateAction, useContext, useState, }...
### What version of React Router are you using? 6.21.3 ### Steps to Reproduce - Create a loader that redirects to another path if some resource doesn't exist e.g. `/product/:id`...
### What version of React Router are you using? 6.21.2 ### Steps to Reproduce 1. Prepare routing with lazy loaded component at root path: ```ts createBrowserRouter([ { path: "/", lazy:...
### What version of React Router are you using? 6.21.1 ### Steps to Reproduce 1. Create a `fetcher` ``` const fetcher = useFetcher() ``` 2. Render the form ``` Submit...
### What version of React Router are you using? "react-router-dom": "^6.22.3", ### Steps to Reproduce Create some routes with createBrowserRouter(). Create a Modal which shows something. Example code ``` import...
### What version of React Router are you using? 6.22.3 ### Steps to Reproduce I use microfrontend architecture in my app. I have a `RouteProvider` in my **host** app with...
This PR adds the ability to `REPLACE` the current history entry rather than always using `POP` when redirecting in route loaders. This is useful for how we manage navigation in...
### What version of React Router are you using? v3 ### Steps to Reproduce ```jsx ``` Load `/a`, navigate to `/b`. ### Expected Behavior `A` is initially rendered, then `B`...