react-router
react-router copied to clipboard
Declarative routing for React
### What is the new or updated feature that you are suggesting? Make the `` component participate in data loading. ### Why should this feature be included? Currently I'm using...
### What version of React Router are you using? 6.2.1 ### Steps to Reproduce https://stackblitz.com/edit/github-ksmc1e?file=src/App.tsx - Declare a route with path set to "🔨" - Visit path "/🔨" (by clicking...
~~This fixes a small inconsistency in `generatePath` w.r.t. `compilePath`. We _do_ support partial named params but at the moment we do not support partial splat params, but `generatePath` was permitting...
Builds on top of original PR (#9418) to handle `basename` in loader/action redirects and also adds support for relative routing in redirects. Basename example: ```js let router = createBrowserRouter([{ path:...
### What version of React Router are you using? 6.4.2 ### Steps to Reproduce 1. Create a data router with one route configured with this path: `/contact/:id` 2. In that...
Without this, anything that used `useLocation` (including `Routes`) was constantly re-rendering.
### What is the new or updated feature that you are suggesting? I would like to submit a request via GraphQL when I submit a form. I am using react-hook-form...
### What version of React Router are you using? 6.4.0 ### Steps to Reproduce Linking to UNPKG.com using a version of @6 with the standard old script link urls of:...
### What version of React Router are you using? 6.4.1 ### Steps to Reproduce Docs for v6.4 are missing `unstable_HistoryRouter`. https://reactrouter.com/en/main/components/form In v6.3 docs `unstable_HistoryRouter` was described. ### Expected Behavior...