rename flush_sync to wait_for_next_render

This commit is contained in:
Evan Almloff committed 2024-03-04 19:52:17 -06:00
1 parent 2e3a730ed5
commit 287416cfa7
7 files changed
+17 -24

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ pub fn use_effect(mut callback: impl FnMut() + 'static) {
rc.changed().await;
// Wait for the dom the be finished with sync work
flush_sync().await;
wait_for_next_render().await;
}
});
});