소스 검색

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")
     );
 
+    // This function is available if you enable the ssr feature
+    // on the dioxus_router crate.
     pre_cache_static_routes::<Route, _>(
         &mut renderer,
         &DefaultRenderer {