1
0
Эх сурвалжийг харах

Fix use_future always spawning a new task

Evan Almloff 1 жил өмнө
parent
commit
bfc8240438

+ 3 - 0
packages/hooks/src/usefuture.rs

@@ -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