Skip to content

Transitions may break dependencies when they change during transition #16127

Closed as duplicate of#15627
@tfedor

Description

@tfedor

Describe the bug

I have a parent component, that changes value used in children component, and toggles its visibility based. Child component has further dependencies on its value.

When parent component hides the child component, it fetches data from server, resets child and toggles it back on. If the fetching is faster than the out transition, the dependencies in children are not updated.

It's hard to describe this, but the REPL should be easily readable.

Reproduction

https://svelte.dev/playground/83dc6b3a9d964dc9ad9c7514e90839d7?version=5.33.19

System Info

svelte 5.33.19

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions