Sfoglia il codice sorgente

Fix future value never updating

Evan Almloff 1 anno fa
parent
commit
8af0f0a76a
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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);
         state.needs_regen.set(false);
     }
     }
 
 
+    // update the current value
+    state.state.current_val = val.current_val.clone();
+
     state
     state
 }
 }