Skip to content

Reactive bug with bind: triggering multiple reactions #15860

@gregg-cbs

Description

@gregg-cbs

Describe the bug

I am using a svelte store with a file state.svelte.ts and it seems when any state in there changes it is causing rerender off all components that use any piece of that state instead of just rerendering the component that is using the changed piece of state.

This feels like a bug and I was able to replicate it to show you. Let me know why this behaviour is happening and how to get around it.

Reproduction

You can find a REPL here that shows this behavior, check the console logs:
https://svelte.dev/playground/1f9b186ca4f840b3b7a8991c58660b1a?version=5.28.2

System Info

Windows, Firefox

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