浏览代码

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

Luca 1 年之前
父节点
当前提交
37eb929d69
共有 1 个文件被更改,包括 2 次插入0 次删除
  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")
             .join("\n")
     );
     );
 
 
+    // This function is available if you enable the ssr feature
+    // on the dioxus_router crate.
     pre_cache_static_routes::<Route, _>(
     pre_cache_static_routes::<Route, _>(
         &mut renderer,
         &mut renderer,
         &DefaultRenderer {
         &DefaultRenderer {