doubov
02/08/2023, 11:28 PMbackStackCreateDepth
to 1 does fix the bug, but I'm pretty sure this shouldn't be required. 🙏doubov
02/08/2023, 11:38 PMInstanceKeeper
get destroyed as well, and we get a new instance when we navigate back to Child A. Is this expected? Should backStackCreateDepth
be set to Int.MAX
to ensure that state is retained for all the components? 🤔doubov
02/08/2023, 11:43 PMChild Stack automatically preserves the stack when a configuration change or process death occurs. By default, only the active component is recreated, components in the back stack remain destroyed and are created on demand.
... but I'm still not sure why a new InstanceKeeper.Instance
is created when I navigate back to Child AArkadii Ivanov
02/09/2023, 10:34 AMbackStackCreateDepth
to have the behaviour you want, this would also match the behvaiour of Android Fragments.Arkadii Ivanov
02/09/2023, 10:37 AMChild.Created
. I will think about it.Arkadii Ivanov
02/09/2023, 4:37 PMdoubov
02/09/2023, 4:39 PMArkadii Ivanov
02/09/2023, 4:41 PMv2.0.0
Arkadii Ivanov
02/09/2023, 4:42 PM