react-router
react-router copied to clipboard
Declarative routing for React
### What version of React Router are you using? 6.4.3 ### Steps to Reproduce ``` { await patchServer() return redirect(`redirect_route`) }} /> ``` The action is called with a `...
### What is the new or updated feature that you are suggesting? When using `defer` in loader: ```js const loader = (client: QueryClient) => { return async () => {...
### What is the new or updated feature that you are suggesting? *Continued from the conversation with @brophdawg11 in https://github.com/remix-run/react-router/pull/9590#discussion_r1030853085* I'm currently migrating a PHP app to Remix, and doing...
### What version of React Router are you using? Latest ### Steps to Reproduce Go to link https://github.com/remix-run/react-router/blob/main/docs/start/tutorial.md Check the image on line 10 ### Expected Behavior The image shouldn't...
First pass based on https://github.com/remix-run/react-router/discussions/9495. @ryanflorence will have feedback and I'm sure it'll change. `useScrollRestoration` (and ``, which relies on it) only allows scroll restoration at the `window` level. This...
Fixes #9463 here is the [codesandbox](https://codesandbox.io/s/react-router-dom-scrollrestoration-w3k9y7?file=/src/App.tsx) please check it in safari on ios `beforeunload` event does not occur in safari on ios Apple's [documentation](https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW5) says to use `pagehide` instead of...
### What version of React Router are you using? - `[email protected]` - `[email protected]` ### Steps to Reproduce Test Case: https://codesandbox.io/s/nifty-curie-be2on9?file=/src/App.js 1. In a transitional v5/v6 environment: 2. Export a `Dashboard`...
### What version of React Router are you using? 6.4 ### Steps to Reproduce - Create a minimal app with react router - Throw an error without an errorElement -...
This adds the new packages to the Changesets config, reimplements the Changesets patch from Remix, and updates the experimental flow to be manually triggered via GitHub, just like Remix. As...
I was encountering re-rendering errors in React and narrowed down the root cause to the useSearchParams() function. It turns out that the present implementation will unnecessarily regenerate the setSearchParams function...