Level 73
Mar 15, 2022
1
Level 4
How does a watcher works under the hood?
I want to check what is the performance overhead from using this feature.
From the official documentation: "watch is shallow by default: the callback will only trigger when the watched property has been assigned a new value"
However this does not explain how it works under the hood. Does anyone know whether there is some kind of polling mechanism that works every some interval and checks for value changes. If not how exactly it works?
Thanks
Please or to participate in this conversation.