Forráskód Böngészése

Explain features necessary for the `pre_cache_static_routes` function. (#1401)

Luca 1 éve
szülő
commit
37eb929d69
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      packages/router/examples/static_generation.rs

+ 2 - 0
packages/router/examples/static_generation.rs

@@ -30,6 +30,8 @@ async fn main() {
             .join("\n")
     );
 
+    // This function is available if you enable the ssr feature
+    // on the dioxus_router crate.
     pre_cache_static_routes::<Route, _>(
         &mut renderer,
         &DefaultRenderer {