rsnext/packages
Zack Tanner 39661815d8
prevent erroneous route interception during lazy fetch (#64692)
When the router cache can't find a cache node for the requested segment,
it performs a request to the server to get the missing data. This
request to the server currently will always include the `next-url`
header, and on soft-navigations, the router will route the request to
the intercepted handler. This lazy fetch is treated as a soft navigation
by the server, and will incorrectly return data for the intercepted
route.

Similar to the handling in `router.refresh`, and the server action
reducer, we should not include the `next-url` header if there's no
interception route currently in the tree, as otherwise we'll be
erroneously triggering the intercepted route.

Fixes #64676
Closes NEXT-3146
2024-04-18 13:22:13 +00:00
..
create-next-app v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
eslint-config-next v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
eslint-plugin-next v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
font v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
next prevent erroneous route interception during lazy fetch (#64692) 2024-04-18 13:22:13 +00:00
next-bundle-analyzer v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
next-codemod v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
next-env v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
next-mdx v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
next-plugin-storybook v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
next-polyfill-module v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
next-polyfill-nomodule v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
next-swc Fix typo: 'serverComponentsExtenalPackages' should be 'serverComponentsExternalPackages' (#64705) 2024-04-18 11:19:01 +02:00
react-refresh-utils v14.3.0-canary.9 2024-04-17 23:14:42 +00:00
third-parties v14.3.0-canary.9 2024-04-17 23:14:42 +00:00