Browse Source

Fix future value never updating

Evan Almloff 1 year ago
parent
commit
8af0f0a76a
1 changed files with 3 additions and 0 deletions
  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
 }