Implement an Observable with JavaScript Proxies - Advanced Deep Dive (Part 2/2)

preview_player
Показать описание
In part 2 of our deep dive into ES6 Proxies, we put what we've learned to the test by implementing our very own Observable object with TypeScript.

📚 Resources 📚
Рекомендации по теме
Комментарии
Автор

Bug on L31: where I erroneously pass `obj` to the Proxy constructor inside of the `set` trap, this line should be `return new Proxy(value, handlers);`

thepeerdependency
Автор

I think, you had wrong event and target in your example with nested object at the end of the video.
If I understand that correctly, you should have had event: SET (since property "first" exists in the name object), target: { first: '...', last: '...' }.

Correct me if I'm wrong, please!

wijionemaster