Open krausest opened 10 months ago
Qwik replaces the whole table when replacing all rows. No other implementation came up with that solution so far. And it appears to keep removed elements in a template tag. isConnected is false then, but the tr is still in a template element.
No other implementation came up with that solution so far
so is that good or bad :laughing:
I can't say that - currently it's just strange. Here's what happens when you click 10x create 10k , the run GC and then create 10k again followed by a GC: That's a lot of memory, but no severe memory leak (so at least it's not bad) Same for vanillajs:
so is that good or bad 😆
it depends, for benchmark purposes it is a clever cheat, for real-world applications it is an awful feature/behavior.
The isKeyed test claims that qwik is non-keyed. Adding a background-color on the tr shows that the dom state is properly in sync with the data for create, remove and swap (or the external state is nicely moved?)
Until resolved we'll add qwik as keyed. Any ideas why the test fails?