Skip to content

Commit 50a9d8c

Browse files
committed
revert client head search
1 parent a0e69b5 commit 50a9d8c

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

Diff for: packages/next/src/client/components/router-reducer/reducers/find-head-in-cache.ts

-22
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,7 @@ function findHeadInCacheImpl(
2020
return [cache, keyPrefix]
2121
}
2222

23-
// First try the 'children' parallel route if it exists
24-
// when starting from the "root", this corresponds with the main page component
25-
if (parallelRoutes.children) {
26-
const [segment, childParallelRoutes] = parallelRoutes.children
27-
const childSegmentMap = cache.parallelRoutes.get('children')
28-
if (childSegmentMap) {
29-
const cacheKey = createRouterCacheKey(segment)
30-
const cacheNode = childSegmentMap.get(cacheKey)
31-
if (cacheNode) {
32-
const item = findHeadInCacheImpl(
33-
cacheNode,
34-
childParallelRoutes,
35-
keyPrefix + '/' + cacheKey
36-
)
37-
if (item) return item
38-
}
39-
}
40-
}
41-
42-
// if we didn't find metadata in the page slot, check the other parallel routes
4323
for (const key in parallelRoutes) {
44-
if (key === 'children') continue // already checked above
45-
4624
const [segment, childParallelRoutes] = parallelRoutes[key]
4725
const childSegmentMap = cache.parallelRoutes.get(key)
4826
if (!childSegmentMap) {

Diff for: packages/next/src/server/app-render/app-render.tsx

-7
Original file line numberDiff line numberDiff line change
@@ -500,13 +500,6 @@ async function generateDynamicRSCPayload(
500500
serveStreamingMetadata,
501501
})
502502

503-
// const { StreamingMetadata, StaticMetadata } =
504-
// createRootMetadata(() => {
505-
// return (
506-
507-
// )
508-
// }, serveStreamingMetadata)
509-
510503
flightData = (
511504
await walkTreeWithFlightRouterState({
512505
ctx,

0 commit comments

Comments
 (0)