Skip to content

outroing transition group never unmounts if one sibling remounts with delay in bidirectional transition #4954

@pushkine

Description

@pushkine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions