-
Notifications
You must be signed in to change notification settings - Fork 297
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: trigger onViewableItemsChanged when data changes #1259
base: main
Are you sure you want to change the base?
fix: trigger onViewableItemsChanged when data changes #1259
Conversation
I have signed the CLA! |
We are experiencing the same issue as described in this PR and, when applying these changes by @intergalacticspacehighway, it seems to resolve it for us. @naqvitalha Are there any plans to merge this and release this properly? |
any update? |
any updates on this? |
Common guys, please just merge this already! 8th of July! |
@naqvitalha please, merge some of these quality PRs and cut a release. We're playing cat & mouse with patching |
any update? |
will this work now?.Any comments? |
@favazpa we gave up with FlashList and are using Legendlist now. It's also up so 20% faster in our tests and has proper support. https://github.com/LegendApp/legend-list |
Description
FlashList does not re-trigger
onViewableItemsChanged
callback if the data prop changes. This also varies from React Native's FlatList. The function nameonViewableItemsChanged
is such that it should trigger if data changes (because it can change the visible items). React Native'sVirtualizedList
uses a similar approach used in this PR to re-trigger the viewability state in didUpdate.Fixes (issue #)
#566
Reviewers’ hat-rack 🎩
onViewableItemsChanged
fires when data prop changes.Screenshots or videos (if needed)
Checklist