Unverified Commit 160a7bfc authored by Andrew Clark's avatar Andrew Clark Committed by GitHub

Enable experimental.optimisticRouting by default (#94011)

Turns on `experimental.optimisticRouting` by default. Second of the
Sparkle stack.

A few tests pin `optimisticRouting: false` because their assertions
observe the pre-flip navigation timing — search-params, a11y route
announcer, and hash scroll. To be updated separately.

<!-- NEXT_JS_LLM_PR -->
parent 01c81260
......@@ -1979,6 +1979,7 @@ export const defaultConfig = Object.freeze({
dynamicOnHover: false,
useOffline: false,
varyParams: true,
optimisticRouting: true,
prefetchInlining: true,
preloadEntriesOnStart: true,
clientRouterFilter: true,
......
module.exports = {}
module.exports = {
experimental: {
// TODO: The route-announcer test asserts on the pre-`optimisticRouting`
// title-change timing. Pin the fixture to the old default until the
// test is updated (or until the flag is removed).
optimisticRouting: false,
},
}
......@@ -12,4 +12,10 @@ module.exports = {
// scroll position can be finicky with the
// indicators showing so hide by default
devIndicators: false,
experimental: {
// TODO: The hash-scroll test asserts on the pre-`optimisticRouting`
// navigation timing. Pin the fixture to the old default until the test
// is updated (or until the flag is removed).
optimisticRouting: false,
},
}
......@@ -3,6 +3,12 @@
*/
const nextConfig = {
cacheComponents: true,
experimental: {
// TODO: This test asserts on the pre-`optimisticRouting` prefetch and
// search-param-rewrite behavior. Pin the fixture to the old default
// until the test is updated (or until the flag is removed).
optimisticRouting: false,
},
}
module.exports = nextConfig
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment