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

Fix unintended state reset on iOS #1152

Merged
merged 4 commits into from Mar 1, 2024
Merged

Conversation

elijah-semyonov
Copy link

Proposed Changes

Perform setContent only once per ComposeContainer mediator lifetime.

Testing

Test: scenario described in the comment doesn't cause whole app recomposition with remembered state recreation

Issues Fixed

Fixes: JetBrains/compose-multiplatform#3698 (comment)

Copy link
Member

@MatkovIvan MatkovIvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it's incorrect, you're ignoring a new content parameter

@elijah-semyonov elijah-semyonov merged commit 3083693 into jb-main Mar 1, 2024
9 checks passed
@elijah-semyonov elijah-semyonov deleted the es/ios-dispose-fix branch March 1, 2024 11:32
igordmn pushed a commit that referenced this pull request Mar 4, 2024
## Proposed Changes

Perform `setContent` only once per ComposeContainer mediator lifetime.

## Testing

Test: scenario described in [the
comment](JetBrains/compose-multiplatform#3698 (comment))
doesn't cause whole app recomposition with remembered state recreation

## Issues Fixed

Fixes:
JetBrains/compose-multiplatform#3698 (comment)
@elijah-semyonov elijah-semyonov added the changelog1.6.1 Temporary label for 1.6.1 changelog (will be removed) label Mar 12, 2024
@elijah-semyonov elijah-semyonov changed the title Call setContent once per mediator creation on iOS Fix unintended state reset on iOS Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog1.6.1 Temporary label for 1.6.1 changelog (will be removed)
Projects
None yet
3 participants