<@UHAJKUSTU> I have a root Component which is crea...
# decompose
v
@Arkadii Ivanov I have a root Component which is created in the androidApp side using
retainedComponent
which means that the rootComponent survives config change And this root Component has a stack navigation, so does this mean the child components for each screen in the nav will also survive config change?
a
Yes, it does. The entire component hierarchy should be retained.
v
That's nice. And what would have been the alternative if we dont use RetainedComponent ?
a
I think
InstanceKeeper
is the default way of retaining things over configuration changes. In this case it's possible to inject activity-scoped dependencies into components.