Subscribe on changes!

Сomparing the same object gives a false result

avatar
Aug 30th 2021

Version

3.2.6

Reproduction link

codesandbox.io

Steps to reproduce

just run the app

What is expected?

Comparing result: true

What is actually happening?

Comparing result: false


I know that the university uses a Proxy object to implement reactivity and to correct this situation, I need to use toRaw(). The problem is that it is not known whether Vue will be used or not outside Class.js.

avatar
Aug 30th 2021
avatar
Aug 30th 2021

I have recreated a simplified model and in fact, for comparison, an external library is used inside which Vue proxies objects.