fix empty docs clippy warning
This commit is contained in:
1 parent
010dcf9533
commit
05eaca320f
3 files changed
+4
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
use dioxus_core::{prelude::provide_root_context, prelude::try_consume_context, use_hook};
|
||||
|
||||
///
|
||||
/// Try to get a value from the root of the virtual dom, if it doesn't exist, create a new one with the closure provided.
|
||||
pub fn use_root_context<T: 'static + Clone>(new: impl FnOnce() -> T) -> T {
|
||||
use_hook(|| {
|
||||
try_consume_context::<T>()
|
||||
|
||||
Reference in new issue
Block a user