Data property read in prop watch treated as a rendering dependency #2728
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.4
Reproduction link
https://jsfiddle.net/skirtle/yuq96a0c/
Steps to reproduce
What is expected?
Clicking 'Button 2' should not cause anything to be logged.
What is actually happening?
Clicking 'Button 2' is logging a message, indicating that the component has re-rendered.
Clicking the first button causes a prop to change, triggering the watcher. The watcher accesses a property, which is then incorrectly tracked as a rendering dependency.
I reported this previously as part of #2521 but it was only partially fixed.
The text was updated successfully, but these errors were encountered: