|
1 | 1 | # `@remix-run/router`
|
2 | 2 |
|
| 3 | +## 1.20.0-pre.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- Stabilize `unstable_patchRoutesOnNavigation` ([#11973](https://github.com/remix-run/react-router/pull/11973)) |
| 8 | +- Stabilize `unstable_dataStrategy` ([#11974](https://github.com/remix-run/react-router/pull/11974)) |
| 9 | +- Stabilize the `unstable_flushSync` option for navigations and fetchers ([#11989](https://github.com/remix-run/react-router/pull/11989)) |
| 10 | +- Stabilize the `unstable_viewTransition` option for navigations and the corresponding `unstable_useViewTransitionState` hook ([#11989](https://github.com/remix-run/react-router/pull/11989)) |
| 11 | + |
| 12 | +### Patch Changes |
| 13 | + |
| 14 | +- - Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003)) |
| 15 | + - Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params |
| 16 | +- Fix bug with fetchers not persisting `preventScrollReset` through redirects during concurrent fetches ([#11999](https://github.com/remix-run/react-router/pull/11999)) |
| 17 | +- Remove internal cache to fix issues with interrupted `patchRoutesOnNavigation` calls ([#12055](https://github.com/remix-run/react-router/pull/12055)) |
| 18 | + |
| 19 | + - We used to cache in-progress calls to `patchRoutesOnNavigation` internally so that multiple navigations with the same start/end would only execute the function once and use the same promise |
| 20 | + - However, this approach was at odds with `patch` short circuiting if a navigation was interrupted (and the `request.signal` aborted) since the first invocation's `patch` would no-op |
| 21 | + - This cache also made some assumptions as to what a valid cache key might be - and is oblivious to any other application-state changes that may have occurred |
| 22 | + - So, the cache has been removed because in _most_ cases, repeated calls to something like `import()` for async routes will already be cached automatically - and if not it's easy enough for users to implement this cache in userland |
| 23 | + |
| 24 | +- Avoid unnecessary `console.error` on fetcher abort due to back-to-back revalidation calls ([#12050](https://github.com/remix-run/react-router/pull/12050)) |
| 25 | +- - Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967)) |
| 26 | + - Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience |
| 27 | +- Fix bugs with partialHydration when hydrating with errors ([#12070](https://github.com/remix-run/react-router/pull/12070)) |
| 28 | +- Remove internal `discoveredRoutes` FIFO queue from `unstable_patchRoutesOnNavigation` ([#11977](https://github.com/remix-run/react-router/pull/11977)) |
| 29 | + |
3 | 30 | ## 1.19.2
|
4 | 31 |
|
5 | 32 | ### Patch Changes
|
|
0 commit comments