Akryum / vue-virtual-scroller

⚡️ Blazing fast scrolling for any amount of data
https://vue-virtual-scroller-demo.netlify.app
9.48k stars 901 forks source link

Vue 3 RecycleScroller will crash if prerender value is larger than items length #710

Open butaminas opened 2 years ago

butaminas commented 2 years ago

I don't know if this is an issue or was this intended but I think it should check if there are enough items to prerended and if not, prerended a lower amount.

If I set the prerender value to be 5 and in my list, I get 3 items, I would get an error indicating, that ID field was not found on undefined item.

softy2k commented 2 years ago

Same issue in Vue 2