Skip to content

Commit 0105378

Browse files
committed
another
1 parent fb77e28 commit 0105378

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/svelte/src/internal/client/dom/elements/transitions.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { is_function } from '../../utils.js';
88
import { current_each_item } from '../blocks/each.js';
99
import { TRANSITION_GLOBAL, TRANSITION_IN, TRANSITION_OUT } from '../../../../constants.js';
1010
import { BLOCK_EFFECT, EFFECT_RAN, EFFECT_TRANSPARENT } from '../../constants.js';
11+
import { queue_micro_task } from '../task.js';
1112

1213
/**
1314
* @param {Element} element
@@ -272,8 +273,8 @@ function animate(element, options, counterpart, t2, callback) {
272273
/** @type {import('#client').Animation} */
273274
var a;
274275

275-
effect(() => {
276-
var o = untrack(() => options({ direction: t2 === 1 ? 'in' : 'out' }));
276+
queue_micro_task(() => {
277+
var o = options({ direction: t2 === 1 ? 'in' : 'out' });
277278
a = animate(element, o, counterpart, t2, callback);
278279
});
279280

0 commit comments

Comments
 (0)