Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #4954 Delayed bidirectional transition prevents components from unmounting #5353

Merged
merged 1 commit into from
Sep 29, 2020

Conversation

orange4glace
Copy link
Contributor

@orange4glace orange4glace commented Sep 4, 2020

To reproduce: Toggle Checkbox multiple times within a second

https://svelte.dev/repl/61d6a8c1cf8a4a819d40e44037617f44?version=3.24.1

Honeycam 2020-09-05 00-56-04

  • Current Behavior

When running_program == null && pending_program != null (This happens because pending_program has a delay) and new program comes, new program is assigned to running_program and old pending_program remains what it was. Eventually, new program will be stopped by pending_program. Notice that pending_program comes before new program but it intercepts new one.

  • Solution

If pending_program != null and new program comes, pending_program should be assigned as new program

@orange4glace orange4glace changed the title fix: #4954 Delayed transition prevents components from unmounting fix: #4954 Delayed bidirectional transition prevents components from unmounting Sep 4, 2020
@Conduitry Conduitry merged commit fd0c6ee into sveltejs:master Sep 29, 2020
taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants