Make router work on web

This commit is contained in:
Jonathan Kelley committed 2024-01-19 16:36:40 -08:00
1 parent b0038bb24b
commit 85c7c22619
51 files changed
+110 -98

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
use dioxus::prelude::*;
use dioxus_router::prelude::*;
use dioxus::router::prelude::*;
use std::str::FromStr;
#[cfg(feature = "liveview")]
@@ -1,7 +1,7 @@
use std::time::Duration;
use dioxus::prelude::*;
use dioxus_router::prelude::*;
use dioxus::router::prelude::*;
use dioxus_ssr::incremental::{DefaultRenderer, IncrementalRendererConfig};
@@ -29,7 +29,7 @@ async fn main() {
);
// This function is available if you enable the ssr feature
// on the dioxus_router crate.
// on the dioxus::router crate.
pre_cache_static_routes::<Route, _>(
&mut renderer,
&DefaultRenderer {