1
0
Эх сурвалжийг харах

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

Luca 1 жил өмнө
parent
commit
37eb929d69

+ 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 {