remove changed log in maybe_sync memo, flush sync
This commit is contained in:
2 files changed
+1
-3
No files matched your search
@@ -58,7 +58,6 @@ pub fn use_maybe_sync_memo<R: PartialEq, S: Storage<SignalData<R>>>(
|
||||
loop {
|
||||
// Wait for the dom the be finished with sync work
|
||||
flush_sync().await;
|
||||
|
||||
rc.changed().await;
|
||||
let new = rc.run_in(|| f());
|
||||
if new != *state.peek() {
|
||||
|
||||
@@ -121,9 +121,8 @@ impl<T: PartialEq + 'static> Signal<T> {
|
||||
|
||||
spawn(async move {
|
||||
loop {
|
||||
flush_sync().await;
|
||||
rc.changed().await;
|
||||
println!("changed");
|
||||
|
||||
let new = f();
|
||||
if new != *state.peek() {
|
||||
*state.write() = new;
|
||||
|
||||
Reference in new issue
Block a user