disable use_future on the server

This commit is contained in:
Jonathan Kelley committed 2024-02-02 13:36:19 -08:00
1 parent 8f70a84c70
commit 0fd7799bc2
3 files changed
+5 -3

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ where
let mut callback = use_callback(move || {
let fut = future();
spawn(async move {
flush_sync().await;
state.set(UseFutureState::Pending);
fut.await;
state.set(UseFutureState::Complete);