clean out router

This commit is contained in:
Adrian Wannenmacher committed 2022-12-06 10:11:22 +01:00
1 parent 1f1c49b9c9
commit 998f9b9ec9
15 files changed
+4 -1318

No files matched your search

-10
View File
@@ -1,10 +0,0 @@
use crate::RouterService;
use dioxus::core::ScopeState;
/// This hook provides access to the `RouterService` for the app.
pub fn use_router(cx: &ScopeState) -> &RouterService {
cx.use_hook(|| {
cx.consume_context::<RouterService>()
.expect("Cannot call use_route outside the scope of a Router component")
})
}