Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from Jul 28, 2023

Conversation

ishitatsuyuki
Copy link
Contributor

@ishitatsuyuki ishitatsuyuki commented Jul 25, 2022

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.

@ishitatsuyuki ishitatsuyuki mentioned this pull request Jul 25, 2022
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.
@Akryum Akryum changed the base branch from next to master July 28, 2023 13:24
@netlify
Copy link

netlify bot commented Jul 28, 2023

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

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

@Akryum Akryum merged commit 14faf2a into Akryum:master Jul 28, 2023
1 check passed
@ishitatsuyuki ishitatsuyuki deleted the reduce-rerender branch July 28, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants