Unexpected watch calling for some props with default generating value #3471
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
Version
3.0.7
Reproduction link
https://jsfiddle.net/r328ezot/10/
Steps to reproduce
A child component has these options.
The parent has this template and setup function.
When I click 'Add' button to change only
bar
, the child state 'count' increases: watch callback for prop `foo' is triggered.If the parent does not pass the prop
foo
, it is not triggered.Is it expected behavior?
What is expected?
Watch callback for
foo
is not triggered if the value is not changed.What is actually happening?
Watch callback for
foo
is triggered if the value is not changed.The text was updated successfully, but these errors were encountered: