| 1 | # `react-router`
|
| 2 |
|
| 3 | ## 6.4.3
|
| 4 |
|
| 5 | ### Patch Changes
|
| 6 |
|
| 7 | - `useRoutes` should be able to return `null` when passing `locationArg` ([#9485](https://github.com/remix-run/react-router/pull/9485))
|
| 8 | - fix `initialEntries` type in `createMemoryRouter` ([#9498](https://github.com/remix-run/react-router/pull/9498))
|
| 9 | - Updated dependencies:
|
| 10 | - `@remix-run/router@1.0.3`
|
| 11 |
|
| 12 | ## 6.4.2
|
| 13 |
|
| 14 | ### Patch Changes
|
| 15 |
|
| 16 | - Fix `IndexRouteObject` and `NonIndexRouteObject` types to make `hasErrorElement` optional ([#9394](https://github.com/remix-run/react-router/pull/9394))
|
| 17 | - Enhance console error messages for invalid usage of data router hooks ([#9311](https://github.com/remix-run/react-router/pull/9311))
|
| 18 | - If an index route has children, it will result in a runtime error. We have strengthened our `RouteObject`/`RouteProps` types to surface the error in TypeScript. ([#9366](https://github.com/remix-run/react-router/pull/9366))
|
| 19 | - Updated dependencies:
|
| 20 | - `@remix-run/router@1.0.2`
|
| 21 |
|
| 22 | ## 6.4.1
|
| 23 |
|
| 24 | ### Patch Changes
|
| 25 |
|
| 26 | - Preserve state from `initialEntries` ([#9288](https://github.com/remix-run/react-router/pull/9288))
|
| 27 | - Updated dependencies:
|
| 28 | - `@remix-run/router@1.0.1`
|
| 29 |
|
| 30 | ## 6.4.0
|
| 31 |
|
| 32 | Whoa this is a big one! `6.4.0` brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the [docs][rr-docs], especially the [feature overview][rr-feature-overview] and the [tutorial][rr-tutorial].
|
| 33 |
|
| 34 | **New APIs**
|
| 35 |
|
| 36 | - Create your router with `createMemoryRouter`
|
| 37 | - Render your router with `<RouterProvider>`
|
| 38 | - Load data with a Route `loader` and mutate with a Route `action`
|
| 39 | - Handle errors with Route `errorElement`
|
| 40 | - Defer non-critical data with `defer` and `Await`
|
| 41 |
|
| 42 | **Bug Fixes**
|
| 43 |
|
| 44 | - Path resolution is now trailing slash agnostic (#8861)
|
| 45 | - `useLocation` returns the scoped location inside a `<Routes location>` component (#9094)
|
| 46 |
|
| 47 | **Updated Dependencies**
|
| 48 |
|
| 49 | - `@remix-run/router@1.0.0`
|
| 50 |
|
| 51 | [rr-docs]: https://reactrouter.com/
|
| 52 | [rr-feature-overview]: https://reactrouter.com/en/6.4.0/start/overview
|
| 53 | [rr-tutorial]: https://reactrouter.com/en/6.4.0/start/tutorial
|