File tree 2 files changed +0
-29
lines changed
client/components/router-reducer/reducers
2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -20,29 +20,7 @@ function findHeadInCacheImpl(
20
20
return [ cache , keyPrefix ]
21
21
}
22
22
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
43
23
for ( const key in parallelRoutes ) {
44
- if ( key === 'children' ) continue // already checked above
45
-
46
24
const [ segment , childParallelRoutes ] = parallelRoutes [ key ]
47
25
const childSegmentMap = cache . parallelRoutes . get ( key )
48
26
if ( ! childSegmentMap ) {
Original file line number Diff line number Diff line change @@ -500,13 +500,6 @@ async function generateDynamicRSCPayload(
500
500
serveStreamingMetadata,
501
501
} )
502
502
503
- // const { StreamingMetadata, StaticMetadata } =
504
- // createRootMetadata(() => {
505
- // return (
506
-
507
- // )
508
- // }, serveStreamingMetadata)
509
-
510
503
flightData = (
511
504
await walkTreeWithFlightRouterState ( {
512
505
ctx,
You can’t perform that action at this time.
0 commit comments