sveltejs / svelte-virtual-list

A virtual list component for Svelte apps
https://svelte.dev/repl/f78ddd84a1a540a9a40512df39ef751b
Other
688 stars 58 forks source link

Added item key check in internal each loop #35

Open jthawme opened 5 years ago

jthawme commented 5 years ago

I needed to invalidate the data in a more intense way in the loop, so needed to have the loop give a key from my array of data.

Seperated into a branch now, so it has my specific commit

tje3d commented 4 years ago

This way you cant use the row as key

jthawme commented 4 years ago

Good point, possibly it'd be better to pass in a keyExtractor like callback then. Will try give it a go