File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,14 @@ export class StaticRouters {
45
45
if ( error instanceof ClientOnlyError ) return ;
46
46
console . error ( error , errorInfo ) ;
47
47
} ,
48
+ noStreaming,
48
49
} : {
49
50
Shell : React . ComponentType < { children : React . ReactElement } > ;
50
51
preloadScript ?: string ;
51
52
bootstrapModules ?: string [ ] ;
52
53
context ?: T ;
53
54
onError ?( error : unknown , errorInfo : React . ErrorInfo ) : string | void ;
55
+ noStreaming ?: boolean ;
54
56
}
55
57
) : Promise < Response | null > {
56
58
const { pathname, search } = new URL ( request . url ) ;
@@ -108,6 +110,9 @@ export class StaticRouters {
108
110
onError,
109
111
}
110
112
) ;
113
+ if ( noStreaming ) {
114
+ await stream . allReady ;
115
+ }
111
116
return new Response ( stream , {
112
117
headers : {
113
118
"Content-Type" : "text/html; charset=utf-8" ,
You can’t perform that action at this time.
0 commit comments