Akryum / vue-virtual-scroller

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

fix(RecycleScroller): Introduce an item wrapper to reduce re-render #742

Closed ishitatsuyuki closed 1 year ago

ishitatsuyuki commented 2 years ago

When rendering a slot, Vue will act as if the slot content was expanded in-line at the <slot>'s place.

Having the slots in a v-for therefore can trigger too much rerender for the slot content, and was generally bad for performance.

Wrapping them in a component should provide some performance improvements as well as solving the hover update overhead.

netlify[bot] commented 1 year ago

Deploy Preview for vue-virtual-scroller-demo failed.

Name Link
Latest commit 8702a1b7071b7fd596499742011c44f356826b54
Latest deploy log https://app.netlify.com/sites/vue-virtual-scroller-demo/deploys/64c3c2839950910008defc8c