Francis Mariano
08/11/2021, 6:31 PMFrancis Mariano
08/11/2021, 7:17 PMsealed class Child {
data class Foo(
val component: FooComponent,
val commonComponent: CommonComponent
) : Child()
data class Dummy(
val component: DummyComponent,
val peripheralComponent: CommonComponent
) : Child()
}
any news I post hereArkadii Ivanov
08/11/2021, 7:27 PMArkadii Ivanov
08/11/2021, 7:28 PMInstanceKeeper
there, if you need it to survive configuration changes on Android.Francis Mariano
08/11/2021, 8:36 PMOr you can scope it in the Root component. You can also use InstanceKeeper there, if you need it to survive configuration changes on Android.
I liked this approach. For now I've created a new component, and if it works I'll try your approach as well.
Thinking about it, maybe I'll leave it with the component, as it has a store, I can keep the connection state and update the screens that observe it.Arkadii Ivanov
08/11/2021, 8:39 PMComponentContext
for it, in which case you will need to use either childContext(...)
or Router
.Francis Mariano
08/11/2021, 9:02 PMArkadii Ivanov
08/11/2021, 11:09 PM