3 ms·
Essentially object proxies. When you invoke a property getter in tracked contexts (like DOM element construction), a dependency is registered for that object p
by recursive 2y ago
Essentially object proxies. When you invoke a property getter in tracked contexts (like DOM element construction), a dependency is registered for that object property. When you invoke the corresponding setter, the update function for the list of dependencies are notified.
That's the idea, in a nutshell.
I'm definitely not the first one to come up with this idea, but I hadn't found another UI framework that worked exactly like how I wanted. Solid is kind of close, but not it. Vue has some of this as well, but it's a bit more kitchen-sink in its scope.
- rglover 2y agoThanks for sharing, that's a cool idea. Will have to wrap my head around it a bit more but got me thinking about how to strip vdom.