react-router
react-router copied to clipboard
Declarative routing for React
### Reproduction Go to https://codesandbox.io/p/devbox/dreamy-bessie-g7rvvd?workspaceId=ws_GELsm6sqyvHi1sc81WvkSa and click the "click to go to account" link. observe that accountId is correct. then click the "now click to go to details" link. observe...
## Description : Adds support for generating types for route files that are referenced outside of `appDirectory`, as long as they remain within the project root. ## Problem Previously, type...
### Reproduction https://stackblitz.com/edit/github-gvrt8fmp ### System Info ```shell System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 -...
**TODO: Add tests** Closes #14356
### I'm using React Router as a... framework ### Reproduction I'm reposting this issue from `remix-run` repo after an agreement with @brookslybrand since the author @phuctm97 of the comment saying...
### Reproduction You can reproduce this issue using the following environment: - https://stackblitz.com/edit/github-fpqca3jn Steps: 1. Open the StackBlitz project 2. Run the following commands in the terminal: ```bash npm run...
### Reproduction Go to [https://codesandbox.io/p/devbox/lfpmvq?file=%2Fsrc%2FApp.jsx%3A36%2C28](https://codesandbox.io/p/devbox/lfpmvq?file=%2Fsrc%2FApp.jsx). The site should say "Hydrating...", if not, try reloading a few times. The error goes away if *either*: * the loader in line 33 is...
### Describe what's incorrect/missing in the documentation The [doc for Resource Routes](https://reactrouter.com/how-to/resource-routes) encourages you to `return` a `Response.json` from a REST/resource endpoint, but only shows the happy path. If you...