* Checks if the current segment or any level above it has a root layout.
*/
constrootLayoutIncludedAtThisLevelOrAbove=
rootLayoutIncluded||rootLayoutAtThisLevel
// Because this function walks to a deeper point in the tree to start rendering we have to track the dynamic parameters up to the point where rendering starts
@@ -1559,6 +1572,8 @@ export async function renderToHTMLOrFlight(
loaderTree:loaderTreeToFilter,
parentParams:currentParams,
firstItem:isFirst,
// This is intentionally not "rootLayoutIncludedAtThisLevelOrAbove" as createComponentTree starts at the current level and does a check for "rootLayoutAtThisLevel" too.
rootLayoutIncluded:rootLayoutIncluded,
}
)
return<Component/>
...
...
@@ -1588,6 +1603,7 @@ export async function renderToHTMLOrFlight(