File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed
packages/next/src/server/app-render Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -1122,9 +1122,7 @@ export const renderToHTMLOrFlight: AppPageRender = (
1122
1122
getDynamicParamFromSegment ,
1123
1123
query
1124
1124
) ,
1125
- isPrefetch &&
1126
- ! Boolean ( components . loading ) &&
1127
- ! hasLoadingComponentInTree ( loaderTree )
1125
+ isPrefetch && ! Boolean ( components . loading )
1128
1126
? null
1129
1127
: // Create component tree using the slice of the loaderTree
1130
1128
// @ts -expect-error TODO-APP: fix async component type
@@ -1147,9 +1145,7 @@ export const renderToHTMLOrFlight: AppPageRender = (
1147
1145
1148
1146
return < Component />
1149
1147
} ) ,
1150
- isPrefetch &&
1151
- ! Boolean ( components . loading ) &&
1152
- ! hasLoadingComponentInTree ( loaderTree )
1148
+ isPrefetch && ! Boolean ( components . loading )
1153
1149
? null
1154
1150
: ( ( ) => {
1155
1151
const { layoutOrPagePath } =
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ createNextDescribe(
18
18
) . toBeTruthy ( )
19
19
expect (
20
20
await next . readFile ( '.next/server/app/linking/about.prefetch.rsc' )
21
- ) . toContain ( 'About loading...' )
21
+ ) . toBeTruthy ( )
22
22
expect (
23
23
await next . readFile (
24
24
'.next/server/app/dashboard/deployments/breakdown.prefetch.rsc'
You can’t perform that action at this time.
0 commit comments