Skip to content

Commit

Permalink
Remove extra unnecessary read
Browse files Browse the repository at this point in the history
  • Loading branch information
zakstucke committed Nov 23, 2024
1 parent d6a1543 commit b841f34
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,9 @@ macro_rules! spawn_derived {
this.loading.store(true, Ordering::Relaxed);

if first_run.is_none() {
owner.with(|| {
let _ = this.try_read_untracked();
for sub in (&this.inner.read().or_poisoned().subscribers).into_iter() {
sub.mark_dirty();
}
});
for sub in (&this.inner.read().or_poisoned().subscribers).into_iter() {
sub.mark_dirty();
}
}

// generate new Future
Expand Down

0 comments on commit b841f34

Please sign in to comment.