diff --git a/Cargo.lock b/Cargo.lock index bbb45f8177..d121cc05e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2572,7 +2572,6 @@ version = "0.1.0" dependencies = [ "console_error_panic_hook", "dioxus", - "dioxus-web", "log", "wasm-logger", ] diff --git a/packages/hooks/src/use_context.rs b/packages/hooks/src/use_context.rs index 33aed61f7f..247cf7a69d 100644 --- a/packages/hooks/src/use_context.rs +++ b/packages/hooks/src/use_context.rs @@ -57,7 +57,5 @@ pub fn use_context() -> T { ///} /// ``` pub fn use_context_provider(f: impl FnOnce() -> T) -> T { - use_hook(|| { - provide_context(f()) - }) + use_hook(|| provide_context(f())) }