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: trigger onViewableItemsChanged when calling MasonryFlashList's recomputeViewableItems after data changed #1433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zyestin
Copy link

@zyestin zyestin commented Nov 27, 2024

I am glad to see that @Paduado has added the recomputeViewableItems method to solve the problem that the onViewableItemsChanged will not be called after the FlashList's data is updated.
But the MasonryFlashList I used in my project did not enjoy this benefit.
So I changed the MasonryFlashList source code to achieve the same effect as FlashList.

Reviewers’ hat-rack 🎩

  • Validate that calling the recomputeViewableItems method triggers the onViewableItemsChanged callback.

Screenshots or videos (if needed)

Checklist

@zyestin
Copy link
Author

zyestin commented Nov 27, 2024

I have signed the CLA!

@zyestin
Copy link
Author

zyestin commented Dec 2, 2024

Hi, @naqvitalha. Can you review my commit, which is very relevant to the last PR #1296 you were involved.

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.

1 participant