Browse Source

Merge pull request #1234 from Demonthos/fix-static-hydrated

Fix route prerendering
Jonathan Kelley 1 năm trước cách đây
mục cha
commit
0097b82490
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      packages/router/src/incremental.rs

+ 2 - 1
packages/router/src/incremental.rs

@@ -50,7 +50,8 @@ where
                         &mut tokio::io::sink(),
                         |vdom| {
                             Box::pin(async move {
-                                let _ = vdom.wait_for_suspense().await;
+                                let _ = vdom.rebuild();
+                                vdom.wait_for_suspense().await;
                             })
                         },
                         wrapper,