소스 검색

fix: macro export

Jonathan Kelley 3 년 전
부모
커밋
62f3d1b38e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/hooks/src/usestate.rs

+ 1 - 1
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();