diff --git a/packages/next/src/server/app-render/walk-tree-with-flight-router-state.tsx b/packages/next/src/server/app-render/walk-tree-with-flight-router-state.tsx index c4fa66727ab1e4..85de6b7d57e69e 100644 --- a/packages/next/src/server/app-render/walk-tree-with-flight-router-state.tsx +++ b/packages/next/src/server/app-render/walk-tree-with-flight-router-state.tsx @@ -29,7 +29,6 @@ export async function walkTreeWithFlightRouterState({ loaderTreeToFilter, parentParams, flightRouterState, - parentRendered, rscPayloadHead, injectedCSS, injectedJS, @@ -42,7 +41,6 @@ export async function walkTreeWithFlightRouterState({ loaderTreeToFilter: LoaderTree parentParams: { [key: string]: string | string[] } flightRouterState?: FlightRouterState - parentRendered?: boolean rscPayloadHead: React.ReactNode injectedCSS: Set injectedJS: Set @@ -119,7 +117,7 @@ export async function walkTreeWithFlightRouterState({ !Boolean(modules.loading) && !hasLoadingComponentInTree(loaderTreeToFilter))) - if (!parentRendered && renderComponentsOnThisLevel) { + if (renderComponentsOnThisLevel) { const overriddenSegment = flightRouterState && canSegmentBeOverridden(actualSegment, flightRouterState[0]) @@ -215,7 +213,6 @@ export async function walkTreeWithFlightRouterState({ parentParams: currentParams, flightRouterState: flightRouterState && flightRouterState[1][parallelRouteKey], - parentRendered: parentRendered || renderComponentsOnThisLevel, rscPayloadHead, injectedCSS: injectedCSSWithCurrentLayout, injectedJS: injectedJSWithCurrentLayout,