rsnext/packages
Tim Neutkens 81b818515a
Fix prefetch for new router (#41119)
- Add a failing test for navigating between many levels of dynamic routes
- Create router tree during prefetch action so that it can be reused across multiple urls
- Ensure segmentPath is correct when rendering a subtree. Previously it would generate a segmentPath that starts at the level it renders at which causes the layout-router fetchServerResponse to inject `refetch` at the wrong level.
- Fixed a case where Segment was compared using `===` which is no longer valid as dynamic parameters are expressed as arrays. Used `matchSegment` helper instead.



## Bug

- [ ] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have a helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-10-05 13:45:46 +00:00
..
create-next-app v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
eslint-config-next v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
eslint-plugin-next v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
font v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
next Fix prefetch for new router (#41119) 2022-10-05 13:45:46 +00:00
next-bundle-analyzer v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
next-codemod v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
next-env v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
next-mdx v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
next-plugin-storybook Refactor app dir related flags (#41166) 2022-10-04 22:16:44 +00:00
next-polyfill-module v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
next-polyfill-nomodule v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
next-swc v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
react-dev-overlay v12.3.2-canary.19 2022-10-04 10:15:01 -07:00
react-refresh-utils v12.3.2-canary.19 2022-10-04 10:15:01 -07:00