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
From the docs at least for me it's not obvious that watching a ref is actually shallow watching its value only.
The problem that we know that an object/array ref makes the object/array accessed through the ref's value reactive.
So intuitively it could seem that watching an object/array ref is deep like watching a reactive variable, but it's not.
I think a remark about this case should be added in the docs, otherwise I see periodically that kind of questions on the stackoverflow:
From the docs at least for me it's not obvious that watching a ref is actually shallow watching its value only.
The problem that we know that an object/array ref makes the object/array accessed through the ref's value reactive.
So intuitively it could seem that watching an object/array ref is deep like watching a reactive variable, but it's not.
I think a remark about this case should be added in the docs, otherwise I see periodically that kind of questions on the stackoverflow:
https://stackoverflow.com/questions/76786334/cannot-watch-an-array-ref-in-vue-3/76786671
The text was updated successfully, but these errors were encountered: