Skip to content

Legacy #await problem #14351

Closed
Closed
@valmarv

Description

@valmarv

Describe the bug

Await block unexpectedly evaluates expression upon state changes in legacy mode.
Expected behavior is to only have the expression evaluated when its variables change.

Reproduction

https://svelte.dev/playground/53cc8a72175c41c6bebb2bbb75d069a7?version=5.2.3

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
    Memory: 9.01 GB / 25.53 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    npm: 9.1.3 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (130.0.2849.80)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    rollup: ^4.22.4 => 4.27.3
    svelte: ^5.1.6 => 5.2.3

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions