KotlinLeaner
03/01/2023, 12:22 AMval uistate = loading, error, fetching
Some conditions in the viewmodel to emit the state
fun sendLoadingState{
If ()
Uistate = Loading
else()
}
In compose function
I am calling sendLoadingState
In Launcheffect.
When(viewmodel.uistate){
Loading -> LoadingScreen()
.. // more code in here
}
I see in the documentation of navigation to use navigateUp.