Skip to content

Strange sequence of calling lifecycle functions (beforeUpdate) #3181

Closed
@a3con

Description

@a3con

Continuing issues #2281. When rendering a list of nested components (A, B, C) and calling beforeUpdate, onMount, afterUpdate in each of them, all beforeUpdate calls occur first and in reverse order (I think this is unintuitive). Calls onMount and afterUpdate are predictable.

Here's a repro: https://svelte.dev/repl/0e2b1e068bb9431fa9f5e2827b552ff3?version=3.6.4

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