Skip to content

Derivations of delayed sync values are not delayed #17849

@Thiagolino8

Description

@Thiagolino8

Describe the bug

When a synchronous state is a dependency of an asynchronous derivation, it is delayed until its asynchronous dependents are resolved to avoid tearing.
But its synchronous derivations are not delayed, which ultimately causes tearing.

Reproduction

When the button is clicked, derivedCount updates before all others.
Similarly, it does not result in true when compared to itself eager
REPL

Logs

System Info

Using Svelte compiler version 5.53.7
running Svelte compiler version 5.53.7

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