Commit 1fb4ba50 authored by Janka Uryga's avatar Janka Uryga

[DO NOT MERGE] check if returning a full tree breaks navigations in dev

parent b0dab5e8
......@@ -541,7 +541,9 @@ async function generateDynamicRSCPayload(
process.env.NODE_ENV === 'development' &&
ctx.renderOpts.cacheComponents &&
!options?.actionResult && // Only for navigations
(await anySegmentNeedsInstantValidation(loaderTree))
((await anySegmentNeedsInstantValidation(loaderTree)) ||
// for testing, also enable this whenever __NEXT_CACHE_COMPONENTS is on
process.env.__NEXT_CACHE_COMPONENTS === 'true')
const { Viewport, Metadata, MetadataOutlet } = createMetadataComponents({
tree: loaderTree,
......
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