Skip to content

Commit 36e2469

Browse files
committed
more tweaks
1 parent a8a420c commit 36e2469

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/svelte/src/internal/client/runtime.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -816,10 +816,9 @@ function process_effects(effect, collected_effects) {
816816
current_effect.f ^= CLEAN;
817817
} else {
818818
try {
819-
if ((flags & BOUNDARY_EFFECT) !== 0) {
820-
flush_boundary_micro_tasks();
821-
}
822-
if (check_dirtiness(current_effect)) {
819+
// If the effect is dirty, then we need to update it, it might also turn inert
820+
// because of async work during calling check_dirtiness
821+
if (check_dirtiness(current_effect) && (current_effect.f & INERT) === 0) {
823822
update_effect(current_effect);
824823
}
825824
} catch (error) {

0 commit comments

Comments
 (0)