fix incremental router cache

This commit is contained in:
Evan Almloff committed 2023-07-08 12:22:54 -07:00
1 parent d94316f7dd
commit 73a45fb113
2 files changed
+11 -4

No files matched your search

+1 -3
View File
@@ -12,9 +12,7 @@ where
use dioxus_router::prelude::RouterConfig;
#[cfg(feature = "ssr")]
let context: crate::prelude::DioxusServerContext = cx
.consume_context()
.expect("RouteWithCfg should be served by dioxus fullstack");
let context = crate::prelude::server_context();
let cfg = *cx.props;
render! {