Skip to content

Don't cleanup layout animations on the JS thread#8852

Open
bartlomiejbloniarz wants to merge 1 commit intomainfrom
@bartlomiejbloniarz/fix-duration-zero-layout
Open

Don't cleanup layout animations on the JS thread#8852
bartlomiejbloniarz wants to merge 1 commit intomainfrom
@bartlomiejbloniarz/fix-duration-zero-layout

Conversation

@bartlomiejbloniarz
Copy link
Contributor

@bartlomiejbloniarz bartlomiejbloniarz commented Jan 21, 2026

Summary

This PR skips layout animation cleanup when the preserveMountedTags_ function return false due to being called on the jsThread. Up to this point we simply skipped addOngoing id the transaction was called on the js thread, but this could lead to cleanup happening before we apply the animation (for duration 0 animations, this would mean the view never moves). So now if it was called no the js thread we skip cleanup and let it happen when the main thread is invoked with pullTransaction. This issue can happen only on android and should be gone when the pull model/branching is implemented.

BEFORE

Screen.Recording.2026-01-21.at.14.47.41.mov

AFTER

Screen.Recording.2026-01-21.at.14.46.19.mov

Test plan

[LA] Duration Zero layout with Virtualization example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant