Skip to content

store value is not displayed after update when created via toStore() #14010

@leonidaz

Description

@leonidaz

Describe the bug

Displaying the value of the store, created via toStore() doesn't work.

Reading the value of the store immediately after creation properly shows the store value in the template but not via console.log()

Reproduction

Link to Playground:

  • The printed value of the $store in the template remains 0
  • Console logging the value of the $store after store updates still shows 0
  • Button click increment via the store sets the value to 1 ($store remains at 0)

Logs

No response

System Info

Svelte Playground 5.1.4

Severity

annoyance

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions