Skip to content

Conversation

@naqvitalha
Copy link
Collaborator

@naqvitalha naqvitalha commented Mar 21, 2024

Description

resolves #689

We had stable callbacks referring to props. For now we capture props in a ref which is updated everytime. Keeps the scope of the change small and fixes the problem.

Reviewers’ hat-rack 🎩

Check if onLoad callback is still working when masonry sample loads.

Screenshots or videos (if needed)

Checklist

@naqvitalha naqvitalha force-pushed the masonry-callback-scope branch from ec08325 to 0198945 Compare March 21, 2024 20:33
Copy link
Collaborator

@davebcn87 davebcn87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@naqvitalha naqvitalha merged commit 5546cb4 into main Mar 22, 2024
@naqvitalha naqvitalha deleted the masonry-callback-scope branch March 22, 2024 16:23
@KingAmo
Copy link

KingAmo commented Jun 5, 2024

should we publish a release for this ?

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.

MasonryFlashList onScroll callback doesn't change the value according to the component scope

3 participants