Skip to content

Commit aed8f8c

Browse files
committed
simplify
1 parent 39f2bf0 commit aed8f8c

File tree

1 file changed

+1
-2
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+1
-2
lines changed

packages/svelte/src/internal/client/reactivity/effects.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ function create_effect(type, fn, sync, push = true) {
145145
e.deps === null &&
146146
e.teardown === null &&
147147
e.nodes_start === null &&
148-
e.first === e.last &&
149-
(e.f & EFFECT_RAN) !== 0 &&
148+
e.first === e.last && // either `null`, or a singular child
150149
(e.f & EFFECT_PRESERVED) === 0
151150
) {
152151
e = e.first;

0 commit comments

Comments
 (0)