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

Remove mount layout animation check #2853

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mattgperry
Copy link
Collaborator

Currently, MeasureLayout calls didUpdate on mount because it could be the case that a layout animation has been triggered where all the snapshotted elements were removed during the render and nothing would be left to call it otherwise. This PR removes unused layout animation initialisations by checking if this happened before scheduling layout measurements.

It also ensures we only measure scroll when we take our first snapshot.

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