Skip to content

Commit 1ea012e

Browse files
committed
Fixing sveltejs#2668, add reset outros state after check outros
1 parent 7440e2f commit 1ea012e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/internal/transitions.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,21 @@ function dispatch(node, direction, kind) {
2323

2424
let outros;
2525

26-
export function group_outros() {
26+
function reset_outros() {
2727
outros = {
2828
remaining: 0,
2929
callbacks: []
3030
};
3131
}
3232

33+
export function group_outros() {
34+
reset_outros();
35+
}
36+
3337
export function check_outros() {
3438
if (!outros.remaining) {
3539
run_all(outros.callbacks);
40+
reset_outros();
3641
}
3742
}
3843

0 commit comments

Comments
 (0)