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

This commit is contained in:
Luca 2023-08-25 15:00:38 -04:00 committed by GitHub
parent 31f8bab20d
commit 37eb929d69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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