Parcourir la source

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

Luca il y a 1 an
Parent
commit
37eb929d69
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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 {