<@UHAJKUSTU> I have this usecase I need to call a ...
# decompose
v
@Arkadii Ivanov I have this usecase I need to call a suspend function in my RootComponent, but i want this to be called before the ChildStack Components are created This function call clears my Room DB, what i have done now is call it inside the
doOnCreate
but i am facing a bug that it sometimes completes after the ChildComponent is created, which then crashes as the app as db goes empty I want it to complete first (success or failure), then the ChildStack child components to be created
a
I think in this case you'd need to set a loading child in your stack first. Then, once you performed all async operations, you can update the stack with actual components.
1