mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-12 23:47:16 +00:00
Fix use_future always spawning a new task
This commit is contained in:
parent
af254102d0
commit
bfc8240438
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ where
|
|||
val.set(Some(fut.await));
|
||||
task.take();
|
||||
})));
|
||||
|
||||
// Mark that we don't need to regenerate
|
||||
state.needs_regen.set(false);
|
||||
}
|
||||
|
||||
state
|
||||
|
|
Loading…
Reference in a new issue