4 ms·
Synergy looks like "uce" here https://gist.github.com/WebReflection/761052d6dae7c8207d2fcba7cdede295 https://gist.github.com/WebReflection/761052d6dae7c8207d2fc
by Existenceblinks 6y ago
Synergy looks like "uce" here https://gist.github.com/WebReflection/761052d6dae7c8207d2fcba7cdede295 https://gist.github.com/WebReflection/761052d6dae7c8207d2fcb... But I can see you use "Template Parts" syntax.
Can you explain, what technique you use to update DOM (I'm lazy to walk through code base), is it proxy object like Solidjs, or something like "uhtml". How do you manage to dispose event listener internally (is memory leak possible around that?)
---
Just read some docs it seems like using Proxy!
- defx 6y agoThanks for your question. Yes, that's correct - Synergy uses Proxy to detect change on the object and then simply walks the tree and updates the nodes whose bindings have changed. Yes there is some commonality with µce API due to implementation of the Custom Element lifecycle methods.