Skip to content

Commit

Permalink
more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Jan 15, 2025
1 parent a8a420c commit 36e2469
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/svelte/src/internal/client/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -816,10 +816,9 @@ function process_effects(effect, collected_effects) {
current_effect.f ^= CLEAN;
} else {
try {
if ((flags & BOUNDARY_EFFECT) !== 0) {
flush_boundary_micro_tasks();
}
if (check_dirtiness(current_effect)) {
// If the effect is dirty, then we need to update it, it might also turn inert
// because of async work during calling check_dirtiness
if (check_dirtiness(current_effect) && (current_effect.f & INERT) === 0) {
update_effect(current_effect);
}
} catch (error) {
Expand Down

0 comments on commit 36e2469

Please sign in to comment.