Skip to content

Binding to an object fires erroneous reactive update #5689

Closed
@intelcentre

Description

@intelcentre

Describe the bug
When binding a complex value such as an object to a component <Component bind:value />, additional reactive updates are fired for the bound value even when no data is changed.

May be related to #4430 ?

To Reproduce
Simply bind a complex value to a component property.

Example:
https://svelte.dev/repl/5e14759de70d4d39b6f3833f91db4542?version=3.29.7

Expected behavior
Reactive updates should be consistent between simple and complex types

Severity
I find it irritating, but not a blocker.
This issue is most likely to cause redundant calculations without formally breaking anything.
This issue will likely snowball if components are nested, though I have not confirmed this.
The additional updates are likely to confuse people causing unnecessary work.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions