Fix use_future always spawning a new task and never updating
@@ -52,8 +52,14 @@ where
val.set(Some(fut.await));
task.take();
})));
+
+ // Mark that we don't need to regenerate
+ state.needs_regen.set(false);
}
+ // update the current value
+ state.state.current_val = val.current_val.clone();
state