Browse Source

fix: macro export

Jonathan Kelley 3 năm trước cách đây
mục cha
commit
e932ed202a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/hooks/src/usestate.rs

+ 1 - 1
packages/hooks/src/usestate.rs

@@ -336,7 +336,7 @@ fn api_makes_sense() {
         }
 
         cx.spawn({
-            crate::to_owned![set_val];
+            dioxus_core::to_owned![set_val];
             async move {
                 set_val.modify(|f| f + 1);
             }