Skip to content

Commit d5a04c6

Browse files
Houndiejkelleyrtp
andauthored
Add server context to suspense resolution (#3552)
* Add server context to suspense resolution While this was done correctly in the streaming case, non-streaming suspense resolution didn't recieve the server context. This meant that anything that required the context after the point of suspension would find it missing. * fmt --------- Co-authored-by: Jonathan Kelley <[email protected]>
1 parent 25a64d9 commit d5a04c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/fullstack/src/render.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ impl SsrRendererPool {
221221
// If streaming is disabled, wait for the virtual dom to finish all suspense work
222222
// before rendering anything
223223
if streaming_mode == StreamingMode::Disabled {
224-
virtual_dom.wait_for_suspense().await;
224+
ProvideServerContext::new(virtual_dom.wait_for_suspense(), server_context.clone())
225+
.await
225226
}
226227

227228
// Render the initial frame with loading placeholders

0 commit comments

Comments
 (0)