Skip to content

Binding to store values from multiple components causes multiple updates for same value #3180

Closed
@antony

Description

@antony

I didn't know exactly how to describe this one, but it seems like if you bind to a store from more than one component, any manual subscriptions fire more than once for each update.

https://svelte.dev/repl/0a55c906240a46b3807f4135e7ff7c64?version=3.16.4

You will notice in the REPL, that you receive console log messages (or you can look at the "updated" count) to see the problem.

Binding automatically (using $) does not have the same problem.

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