3 ms·
I get his point -- javascript object observation has been a pain, and causes the stated workaround.s With new API like Proxy [1], we should not be able to just
by anilgulecha 9y ago
I get his point -- javascript object observation has been a pain, and causes the stated workaround.s
With new API like Proxy [1], we should not be able to just modify data as needed, and any observers can be notified by handlers in the object get/set. This will lead to data being fully mutable.
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- styfle 9y agoThe Proxy API is how dot-dom[0] implements a React-like component API [0]: https://github.com/wavesoft/dot-dom https://github.com/wavesoft/dot-dom