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

Component state should be frozen when outro is playing #8294

Open
ToP29 opened this issue Feb 19, 2023 · 0 comments
Open

Component state should be frozen when outro is playing #8294

ToP29 opened this issue Feb 19, 2023 · 0 comments

Comments

@ToP29
Copy link

ToP29 commented Feb 19, 2023

Describe the bug

I have Breadcrumbs component, which updates based on breadcrumbs store. Store updates when +layout.svelte gets mounted or destroyed.

Problem is that breadcrumbs gets updated when outro animation starts, so user sees new bradcrumbs on old page. I think that outgoing component should have its state frozen, so it can not update while animation out. Or there should be at least option to enable this behavior (possibly param in transition function)

This could also fix this issue: Store updates break transitions and components #3685 which is wrongfully closed.

Reproduction

https://github.com/ToP29/svelte-transitions-repro

Logs

No response

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (32) x64 AMD Ryzen 9 7950X 16-Core Processor
    Memory: 1.11 GB / 31.73 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1265.0), Chromium (110.0.1587.50)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    svelte: ^3.54.0 => 3.55.1

Severity

blocking all usage of svelte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants