Skip to content

Commit 96e59c8

Browse files
committed
another one
1 parent 4d7db69 commit 96e59c8

File tree

1 file changed

+5
-8
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+5
-8
lines changed

packages/svelte/src/internal/client/dom/blocks/each.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ import {
1717
} from '../hydration.js';
1818
import { clear_text_content, empty } from '../operations.js';
1919
import { remove } from '../reconciler.js';
20-
import { untrack } from '../../runtime.js';
2120
import {
2221
block,
2322
branch,
2423
destroy_effect,
25-
effect,
2624
run_out_transitions,
2725
pause_children,
2826
pause_effect,
@@ -31,6 +29,7 @@ import {
3129
import { source, mutable_source, set } from '../../reactivity/sources.js';
3230
import { is_array, is_frozen } from '../../utils.js';
3331
import { INERT, STATE_SYMBOL } from '../../constants.js';
32+
import { queue_micro_task } from '../task.js';
3433

3534
/**
3635
* The row of a keyed each block that is currently updating. We track this
@@ -423,12 +422,10 @@ function reconcile(array, state, anchor, render_fn, flags, get_key) {
423422
}
424423

425424
if (is_animated) {
426-
effect(() => {
427-
untrack(() => {
428-
for (item of to_animate) {
429-
item.a?.apply();
430-
}
431-
});
425+
queue_micro_task(() => {
426+
for (item of to_animate) {
427+
item.a?.apply();
428+
}
432429
});
433430
}
434431
}

0 commit comments

Comments
 (0)