Closed
Description
When I bind the object with child component's property and use reactive declaration with it - the reactive declaration will run tripple - once on mount(it is correct) and then runs twice, but shouldn't.
Example in REPL(open the console):
There are two bindings with object and primitive type. Primitive binding doesn't run reactive statement at all, but object's binding runs twice.
https://svelte.dev/repl/1dd6381bdcbd4e179dedc6109e73ab14?version=3.18.1
Before version 3.16.5, binding with object did run statement once (after initialization one).
https://svelte.dev/repl/1dd6381bdcbd4e179dedc6109e73ab14?version=3.16.4
Expected behavior:
As I think, binding with object shouldn't invalidate object at all. Like primitive bindings.
Metadata
Metadata
Assignees
Labels
No labels