rename flush_sync to wait_for_next_render
This commit is contained in:
1 parent
2e3a730ed5
commit
287416cfa7
7 files changed
+17
-24
No files matched your search
@@ -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;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user