another one

pull/11960/head
Rich Harris 2 years ago
parent 4d7db69751
commit 96e59c810c

@ -17,12 +17,10 @@ import {
} from '../hydration.js'; } from '../hydration.js';
import { clear_text_content, empty } from '../operations.js'; import { clear_text_content, empty } from '../operations.js';
import { remove } from '../reconciler.js'; import { remove } from '../reconciler.js';
import { untrack } from '../../runtime.js';
import { import {
block, block,
branch, branch,
destroy_effect, destroy_effect,
effect,
run_out_transitions, run_out_transitions,
pause_children, pause_children,
pause_effect, pause_effect,
@ -31,6 +29,7 @@ import {
import { source, mutable_source, set } from '../../reactivity/sources.js'; import { source, mutable_source, set } from '../../reactivity/sources.js';
import { is_array, is_frozen } from '../../utils.js'; import { is_array, is_frozen } from '../../utils.js';
import { INERT, STATE_SYMBOL } from '../../constants.js'; import { INERT, STATE_SYMBOL } from '../../constants.js';
import { queue_micro_task } from '../task.js';
/** /**
* The row of a keyed each block that is currently updating. We track this * The row of a keyed each block that is currently updating. We track this
@ -423,13 +422,11 @@ function reconcile(array, state, anchor, render_fn, flags, get_key) {
} }
if (is_animated) { if (is_animated) {
effect(() => { queue_micro_task(() => {
untrack(() => {
for (item of to_animate) { for (item of to_animate) {
item.a?.apply(); item.a?.apply();
} }
}); });
});
} }
} }

Loading…
Cancel
Save