remove changed log in maybe_sync memo, flush sync

This commit is contained in:
Jonathan Kelley committed 2024-02-02 14:35:55 -08:00
1 parent 3295935de7
commit d28cc9c0cf
2 files changed
+1 -3

No files matched your search

-1
View File
@@ -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() {
+1 -2
View File
@@ -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;