ソースを参照

Fix future value never updating

Evan Almloff 1 年間 前
コミット
8af0f0a76a
1 ファイル変更3 行追加0 行削除
  1. 3 0
      packages/hooks/src/usefuture.rs

+ 3 - 0
packages/hooks/src/usefuture.rs

@@ -57,6 +57,9 @@ where
         state.needs_regen.set(false);
     }
 
+    // update the current value
+    state.state.current_val = val.current_val.clone();
+
     state
 }