react-router
react-router copied to clipboard
Declarative routing for React
## TL;DR All imports in `routes.ts` and all its direct or transitive imports have to be absolute or relative using `./` and `../` notation, path aliases like `~` and `@`...
fixes: #13954
RFC: #9881 RouterProvider catches errors from: - loaders - actions - rendering and then renders the ``. This extends React's `componentDidCatch` capabilities to include errors when loading or mutating data....
### What's the issue ? When the user cancel a fetcher request there is chance the website crashes. The user can cancel a fetcher request when he navigates, reload the...
### Reproduction CSS flash occurs when middleware throws a response while root route has a loader function. The ErrorBoundary content appears unstyled briefly before styled version loads. ### Root Cause...
## TL;DR All imports in `routes.ts` and all its direct or transitive imports have to be absolute or relative using `./` and `../` notation, path aliases like `~` and `@`...
### Description This change resolves an issue where the request body is inaccessible to `react-router` when a Node.js server, such as Express, uses middleware that consumes the request stream before...
It seems parameters which are encoded using `encodeURIComponent` are automatically decoded when using `useParams` or `matchPath`. So if I encode them _twice_, I expect them to be encoded once, after...
If a route: 1. Uses suspense 2. Has a layout that also has a loader (non-suspense) 3. The route's suspense promise rejects before the layout's loader completes Then the promise...
As of `@cloudflare/vite-plugin` v0.1.14, the `assets` field in the Wrangler config is now optional. Ref: https://github.com/cloudflare/workers-sdk/blob/main/packages/vite-plugin-cloudflare/CHANGELOG.md#0114 This PR removes the now redundant empty `assets` object from the configuration. Ref: https://github.com/cloudflare/workers-sdk/pull/8545