8 ms·
Lit is great, really easy to grasp and to use. One thing I don't understand in lit (or vuejs, svelte etc...) is why we can't have an each loop that would use i
by lowi 3y ago
Lit is great, really easy to grasp and to use.
One thing I don't understand in lit (or vuejs, svelte etc...) is why we can't have an each loop that would use information about what has changed.
In my most common case, I am simply updating an item in an array (or removing/adding an item) and the each loop could use the list of operations to do the changes instead of iterating over all the items.
For large array (1000+ items) for a SVG diagramming tool, performance would be much improved, no?