Explorar o código

fix route prerendering

Evan Almloff hai 1 ano
pai
achega
9e70aae989
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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,