Browse Source

Fix future value never updating

Evan Almloff 1 năm trước cách đây
mục cha
commit
8af0f0a76a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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
 }