8000 Store is not being updated synchronously / store value is incorrect · Issue #5052 · sveltejs/svelte · GitHub
[go: up one dir, main page]

Skip to content
Store is not being updated synchronously / store value is incorrect #5052
Open
@yuliankarapetkov

Description

@yuliankarapetkov

Describe the bug
Store value is not up-to-date if using a $ subscription inside a subscription function.

To Reproduce

  1. Open this REPL.
  2. Open your browser console.
  3. Click on "Increment" a few times.
  4. Click on "Cause reset".
  5. Check your console.

For a real life example look at this REPL.

image

Expected behavior
Value should be in sync.

Severity
Blocking

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

      0