Unverified Commit 9d4ed24b authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Update crates/next-api/src/pages.rs

Co-authored-by: 's avatarvercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
parent bbe3d04d
......@@ -1003,7 +1003,12 @@ impl PageEndpoint {
async {
let chunk_group = chunking_context.chunk_group(
layout.ident(),
ChunkGroup::Shared(layout).cell(),
// Layout segment optimization relies on
// `chunking_context.chunk_group()` being the same task
// for a given layout across pages. So use
// `ChunkGroup::shared_interned` instead of
// `ChunkGroup::Shared().cell()` here.
ChunkGroup::shared_interned(*layout),
ssr_module_graph,
current_chunk_group.await?.availability_info,
);
......
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