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

Bump RLV and remove invariant #284

Merged
merged 4 commits into from
Apr 4, 2022
Merged

Bump RLV and remove invariant #284

merged 4 commits into from
Apr 4, 2022

Conversation

naqvitalha
Copy link
Collaborator

Description

Upgrading RLV to beta version. The new version of RLV has a fix to a long standing issue when if first item's layout doesn't change at all after a change in layout manager then layout of the second item can be wrong. It's an extreme edge case but I fixed it to avoid seeing it in the future.

The fix is not important for FlashList as the layout bug will not be visible due to AutoLayout. The primary purpose of the PR is to move away from alpha version. The change will not cause regression.

Also, invariant wasn't used anywhere in the package and fixture so I removed it.

Checklist

requestAnimationFrame(() => {
done();
});
flashList.unmount();
Copy link
Collaborator Author

@naqvitalha naqvitalha Apr 4, 2022

Choose a reason for hiding this comment

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

Jest isn't doing unmount on its own. In real world async operations will stop as soon as component unmounts. This test was breaking intermittently so I fixed it.

@naqvitalha naqvitalha merged commit d73ddab into main Apr 4, 2022
@naqvitalha naqvitalha deleted the upgradeRLV branch April 4, 2022 14:00
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.

2 participants