You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since @vue/composition-api@1.1.2, triggerRef stopped triggering watch when watching an array of shallow refs. It appears to be caused by #791.
Here's a code sandbox demonstrating the issue. If you switch @vue/composition back to version 1.1.1, the same example will work correctly and consistently.
The text was updated successfully, but these errors were encountered:
These are not the only problems. The following also don't work:
constcounter=shallowRef({count: 0});constcounterOne=shallowRef(0);constcounterMany=shallowRef(0);functiontrigger(){counter.value={count: 0};}// should not trigger,but it triggeredwatch(counter,()=>counterOne.value++);
Since @vue/composition-api@1.1.2,
triggerRef
stopped triggeringwatch
when watching an array of shallow refs. It appears to be caused by #791.Here's a code sandbox demonstrating the issue. If you switch
@vue/composition
back to version 1.1.1, the same example will work correctly and consistently.The text was updated successfully, but these errors were encountered: