Skip to content

Fix: Persist ExpandableText state across recomposition#18

Open
Sami00777 wants to merge 1 commit intocode3-dev:masterfrom
Sami00777:master
Open

Fix: Persist ExpandableText state across recomposition#18
Sami00777 wants to merge 1 commit intocode3-dev:masterfrom
Sami00777:master

Conversation

@Sami00777
Copy link

@Sami00777 Sami00777 commented Dec 31, 2025

Problem
When users scrolled through the series list and returned to top of the screen, the text would collapse back to its truncated state. This occurred because ExpandableText was using remember instead of rememberSaveable, causing state to be lost when items left and re-entered the composition during list scrolling.

Changes

  1. Changed expanded from remember to rememberSaveable
  2. Changed showReadMore from remember to rememberSaveable

Result
Text expansion state now persists during list scrolling and configuration changes.

1.mp4

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