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
Thanks for raising this interesting point! The __proto__ property is a tricky topic in JavaScript and understandably there are misunderstandings about it among developers. This is not the first time when people raised this issue.
On the other hand, after reading all the relevant docs, my conclusion is: the way that VanJS is doing with __proto__ is well supported by modern web-standard thus there is no concern on potentially losing support in future browser versions. In the same page you linked, please note that:
As we know, we use proto to do expose synthetic properties like val and oldVal of the given state. But current browsers are depreciating usage of proto- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto
We should refactor to make this wonderful neat rendering technique update to do for modern browser baselines
The text was updated successfully, but these errors were encountered: