Change context api to panic with nice error message
This commit is contained in:
19 files changed
+96
-69
No files matched your search
@@ -9,5 +9,5 @@ pub fn use_router() -> RouterContext {
|
||||
|
||||
/// Aquire the router without subscribing to updates.
|
||||
pub fn router() -> RouterContext {
|
||||
dioxus_lib::prelude::consume_context().unwrap()
|
||||
dioxus_lib::prelude::consume_context()
|
||||
}
|
||||
Reference in new issue
Block a user