瀏覽代碼

fix: macro export

Jonathan Kelley 3 年之前
父節點
當前提交
e932ed202a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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({
         cx.spawn({
-            crate::to_owned![set_val];
+            dioxus_core::to_owned![set_val];
             async move {
             async move {
                 set_val.modify(|f| f + 1);
                 set_val.modify(|f| f + 1);
             }
             }