update doc examples

This commit is contained in:
Evan Almloff committed 2023-05-31 15:51:26 -05:00
1 parent 35befa1784
commit 09cabe4e8b
22 files changed
+474 -518

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
use dioxus::prelude::*;
use crate::{hooks::use_route, routable::Routable};
use crate::{hooks::use_generic_route, routable::Routable};
#[derive(Clone)]
pub(crate) struct OutletContext {
@@ -25,7 +25,7 @@ impl OutletContext {
}
});
use_route::<R>(cx)
use_generic_route::<R>(cx)
.expect("Outlet must be inside of a router")
.render(cx, current_level)
}