react-router
react-router copied to clipboard
Declarative routing for React
fix(react-router/fs-routes): correctly apply ignoredFilePatterns to files and folders in flatRoutes
fixes: #14157 The current implementation checks `ignoredFilePatterns` against file paths relative to the `app` directory (e.g. `"routes/mainPage.tsx"`) instead of the `routes` directory as [documented](https://reactrouter.com/how-to/file-route-conventions#setting-up) (e.g. `"mainPage.tsx"`). As a result, patterns...
### Reproduction https://github.com/87906913/408919357/tree/main/react-router/invalid-css-resolution-order Reproduction steps are in the readme. ### System Info ```shell System: OS: Windows 10 CPU: (4) Binaries: Node: 22 npm: 10 ``` ### Used Package Manager npm...
This changes our approach to Route Module component exports in RSC Framework Mode. Instead of converting _every_ component export to a server component when a `ServerComponent` export is present, we...
### Describe what's incorrect/missing in the documentation This is not mentioned in the docs, but in order for `context` in loaders not to be `any`, the `Future` interface in `react-router`...
### I'm using React Router as a... framework ### Reproduction https://stackblitz.com/edit/github-sbic1hau?file=app%2Froutes%2Fhome.tsx ### System Info ```shell System: OS: macOS 14.7.6 CPU: (10) arm64 Apple M1 Pro Memory: 71.19 MB / 32.00...
Add support for Vite plugins that add a server build entry. For example, this change is required for being able to use React Router with [Telefunc](https://telefunc.com).
### I'm using React Router as a... framework ### Reproduction ## Repository https://github.com/Vinorcola/React-router-global-layout-remount-issue ## Install Clone and run `npm install` in the directory. Then, run `npm run dev` to start...
## TODO - [x] tests - [x] changeset
RFC: https://github.com/remix-run/react-router/discussions/10231 See also remix-run/remix#2749
### Describe what's incorrect/missing in the documentation Made I'm remembering wrong but i swear the Framework | Data | Declarative thing used to switch to the relevant page for that...