Skip to content

Properly handle recycling of RecomposeHighlighterModifier #510

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

Merged
merged 4 commits into from
May 14, 2025

Conversation

mlykotom
Copy link
Contributor

@mlykotom mlykotom commented May 6, 2025

After migrating to be Node based, it's possible the Modifier node can be reused.

For example, when scrolling in a LazyColumn the nodes of items scrolled off the viewport may be recycled and used with items scrolling into the viewport. When this occurs, the composition count needs to be reset. Otherwise, it may look like the item scrolling into the viewport has recomposed more than it actually has.

mlykotom added 2 commits May 6, 2025 11:20
After migrating to be Node based, it's possible the Modifier node can be reused. For example, when scrolling in a LazyColumn the nodes of items scrolled off the viewport may be recycled and used with items scrolling into the viewport. When this occurs, the composition count needs to be reset. Otherwise, it may look like the item scrolling into the viewport has recomposed more than it actually has.
@mlykotom mlykotom requested review from a team and MagicalMeghan May 6, 2025 09:24

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@mlykotom mlykotom requested a review from bentrengrove May 13, 2025 06:50

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@mlykotom mlykotom merged commit 903fcbc into main May 14, 2025
5 checks passed
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.

None yet

2 participants