Skip to content

Commit 0f5b3cd

Browse files
committed
tweak
1 parent c0ff1d0 commit 0f5b3cd

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ export class Batch {
5252
}
5353

5454
for (const e of this.effects) {
55-
if (e.fn) {
56-
set_signal_status(e, DIRTY);
57-
schedule_effect(e);
58-
}
55+
set_signal_status(e, DIRTY);
56+
schedule_effect(e);
5957
}
6058

6159
for (const batch of batches) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ function process_effects(root, async_effects, render_effects, effects) {
852852

853853
var skip = is_skippable_branch || (flags & INERT) !== 0 || batch.skipped_effects.has(effect);
854854

855-
if (!skip) {
855+
if (!skip && effect.fn !== null) {
856856
if ((flags & EFFECT_ASYNC) !== 0) {
857857
if (check_dirtiness(effect)) {
858858
async_effects.push(effect);

0 commit comments

Comments
 (0)