:question: I’m currently going thru quickstart; <h...
# decompose
j
I’m currently going thru quickstart; https://arkivanov.github.io/Decompose/getting-started/quick-start/ Looking at this example:
Copy code
when (config) {
            is Config.List -> ListChild(listComponent(componentContext))
            is Config.Details -> DetailsChild(detailsComponent(componentContext, config))
        }
I can’t call
ListChild
like that. I have to use
RootComponent.Child.ListChild
instead. Is that intended or do I need to do something special to get the shorter syntax? I’m on Decompose 2.0.0
a
You can import RootComponent.Child.ListChild directly.
I think I need to add imports to samples.
j
Gotcha 🙂