Assigned
Status Update
Comments
an...@google.com <an...@google.com>
vc...@gmail.com <vc...@gmail.com> #2
This issue is still present with the latest lib versions: Kotlin 1.8.10, Compose 1.4.0, androidx.appcompat:appcompat:1.6.1, androidx.navigation:navigation-fragment-ktx:2.6.0-alpha08, androidx.fragment:fragment-ktx:1.6.0-alpha08.
Is there any workaround to make rememberSaveable
work in child fragments?
Description
I have attached a sample that illustrates the issue.
Steps to reproduce:
- Click on Change color ==> result: The text color has been changed
- Click on Navigate to next screen ==> New screen appears
- Click on back button ==> First screen is back but the text color is reset and should not
The state of a "child fragment" is not restored in compose. Maybe this issue is related to ''androidx.fragment:fragment-ktx:1.4.0-alpha05'' but I'm not sure
Thanks a lot