From 62f3d1b38edeadd431ec322b256b3ccb93250649 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Wed, 2 Mar 2022 18:02:14 -0500 Subject: [PATCH] fix: macro export --- packages/hooks/src/usestate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hooks/src/usestate.rs b/packages/hooks/src/usestate.rs index 7dd6bfea4..4c5d80fd1 100644 --- a/packages/hooks/src/usestate.rs +++ b/packages/hooks/src/usestate.rs @@ -38,7 +38,7 @@ pub fn use_state<'a, T: 'static>( let update_callback = cx.schedule_update(); let slot = Rc::new(RefCell::new(current_val.clone())); let setter = Rc::new({ - crate::to_owned![update_callback, slot]; + dioxus_core::to_owned![update_callback, slot]; move |new| { { let mut slot = slot.borrow_mut();