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

perf: reuse already measure items, include key into virtualItem #179

Merged
merged 1 commit into from Sep 30, 2021

Conversation

piecyk
Copy link
Collaborator

@piecyk piecyk commented Aug 9, 2021

This PR adds small optimisation when creating measurements, as we don't need to rebuild the list from start, only from where item size changed. In addition added key value on virtualItem.

closes #120

@vercel
Copy link

vercel bot commented Aug 9, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/tanstack/react-virtual/9Mb8qXtFcVR9DxbdDu71A1bdjVQU
✅ Preview: https://react-virtual-git-fork-piecyk-perf-optimize-mea-a31de7-tanstack.vercel.app

@piecyk
Copy link
Collaborator Author

piecyk commented Aug 16, 2021

@tannerlinsley could you have a look on this when you got a moment? Having a key on item would simplify code in some use-cases 🙏

@piecyk
Copy link
Collaborator Author

piecyk commented Aug 26, 2021

ping, would be nice to get this review & released 😉

@ghost
Copy link

ghost commented Sep 30, 2021

👋 Is there any update on when / if this PR will be merged?

@tannerlinsley tannerlinsley merged commit 8cb22fb into TanStack:master Sep 30, 2021
@tannerlinsley
Copy link
Collaborator

Sorry for the delay. This is a good addition!

@tannerlinsley
Copy link
Collaborator

🎉 This PR is included in version 2.8.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@piecyk piecyk deleted the perf/optimize-measurements branch October 1, 2021 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include keyExtractor value in virtualItems.item
2 participants