react-router
react-router copied to clipboard
Declarative routing for React
Closes #12007 The normal behavior is: `fetcher1.load()` gets cancelled if a `fetcher2.action()` is called, then the `fetcher1.load()` is called again because of revalidation. The problem (bug?) is that a _cancelled_...
### What version of React Router are you using? 6.26.1 ### Steps to Reproduce This is a common usage: Giving a Prisma schema: ```prisma // schema.prisma model User { //...
### What version of React Router are you using? 6.26.2 ### Steps to Reproduce I have already reported the bug in remix-run/remix repo, which rather belongs to this repository: https://github.com/remix-run/remix/issues/10053...
This has primarily 2 use cases: * When using `v7_fetcherPersist`, we lost the ability to actually cancel/abort fetches if a fetcher was unmounted, so this gives the users a programmatic...
This PR moves the loadDotEnv function prior to configuring the routes. **Why is this important?** I have another project where routes are dynamically generated based on the value of a...
### Reproduction Go to https://codesandbox.io/p/github/bartekparysek/github-olgrgqfe/master you should end up at the login page. Enter any data inside input and submit. You should be redirected to home page. Wait untill you...
### Reproduction MRE: https://stackblitz.com/edit/github-dbzca6qx?file=app%2Froutes%2Fhome.tsx I'm attempting to do an optimistic update of a toggle following the pattern in the docs. Something like: ```typescript const status = (fetcher.formData && fetcher.formData.get('status') ===...
**Closes #14433** ### Description of the Change This Pull Request addresses the documentation issues raised in issue #14433 concerning the `Error Boundary` documentation. The key changes implemented are: 1. **Correction...