Add watching only final changes, don't trigger on intermediate changes #13375
Replies: 1 comment 1 reply
-
What you're asking for is a deep comparison before Note that
It's a tough thing to ask for a deep check as it requires In your specific example, I think it would just be more efficient for you to check if |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently I have been encountered this case frequently that irritates me very:
So as you see the second watch is triggered even the set is the same in the end of the first watch. These unnecessary triggers make my life silly. I could add some boolean variables to skip the mutation or just compare values before the mutation (whether the mutation is needed). But I would prefer some more clean approach like
watchFinal
or:Beta Was this translation helpful? Give feedback.
All reactions