Skip to content

Counter example not keeping state/count #1032

Answered by ZacSweers
brh asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use rememberRetained to survive rotation, as remember is lost when the current composition goes away.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@brh
Comment options

@ZacSweers
Comment options

@brh
Comment options

Answer selected by ZacSweers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1031 on November 30, 2023 16:01.