We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23d02d4 commit bee95e7Copy full SHA for bee95e7
index.tsx
@@ -45,12 +45,14 @@ export class StaticRouters {
45
if (error instanceof ClientOnlyError) return;
46
console.error(error, errorInfo);
47
},
48
+ noStreaming,
49
}: {
50
Shell: React.ComponentType<{ children: React.ReactElement }>;
51
preloadScript?: string;
52
bootstrapModules?: string[];
53
context?: T;
54
onError?(error: unknown, errorInfo: React.ErrorInfo): string | void;
55
+ noStreaming?: boolean;
56
}
57
): Promise<Response | null> {
58
const { pathname, search } = new URL(request.url);
@@ -108,6 +110,9 @@ export class StaticRouters {
108
110
onError,
109
111
112
);
113
+ if (noStreaming) {
114
+ await stream.allReady;
115
+ }
116
return new Response(stream, {
117
headers: {
118
"Content-Type": "text/html; charset=utf-8",
0 commit comments