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
@@ -3,7 +3,7 @@ use crate::{
|
||||
ReadOnlySignal, ReadableRef,
|
||||
};
|
||||
use dioxus_core::{
|
||||
prelude::{flush_sync, spawn, IntoAttributeValue},
|
||||
prelude::{spawn, IntoAttributeValue},
|
||||
ScopeId,
|
||||
};
|
||||
use generational_box::{AnyStorage, Storage, SyncStorage, UnsyncStorage};
|
||||
@@ -109,7 +109,6 @@ impl<T: PartialEq + 'static> Signal<T> {
|
||||
|
||||
spawn(async move {
|
||||
loop {
|
||||
flush_sync().await;
|
||||
rc.changed().await;
|
||||
let new = f();
|
||||
if new != *state.peek() {
|
||||
|
||||
Reference in new issue
Block a user