4 ms·
I don't see what stops you adding caching in Svelte for virtual lists.
by daliusd 7y ago
I don't see what stops you adding caching in Svelte for virtual lists.
- hajile 7y agoImagine you add a few attributes, some properties, and a couple event listeners to a node. In order to reuse the node, you have to reset it to factory settings. How would Svelte know what things had been changed when looking at a node saved in a cache? If it has to check every property, the cost to check will exceed the cost to create new. If it saves a list of changes, it's essentially created a vdom anyway.
- daliusd 7y agoThank you for explaining that to me. It is good to know what technology to use if I will meet this specific case. So far all projects I have worked on can be implemented both with React and Svelte :)