https://svelte.dev/repl/7157234039fa43c2ac779c534941e263?version=3.23.0
|
if (!pending_program) { |
|
// we're done |
|
if (running_program.b) { |
|
// intro — we can tidy up immediately |
|
clear_animation(); |
|
} else { |
|
// outro — needs to be coordinated |
|
if (!--running_program.group.r) run_all(running_program.group.c); |
|
} |
|
} |
|
|
|
running_program = null; |
pending_program is only present in bidirectional transitions with delay
reversing one while it's outroing will fail the !pending_program check, and discard running_program
the group running_program belongs to subsequently cannot complete its transition
https://svelte.dev/repl/7157234039fa43c2ac779c534941e263?version=3.23.0
svelte/src/runtime/internal/transitions.ts
Lines 309 to 320 in 8fc85f0
pending_programis only present in bidirectional transitions with delayreversing one while it's outroing will fail the
!pending_programcheck, and discardrunning_programthe group
running_programbelongs to subsequently cannot complete its transition