Has anyone been able to successfully return a resu...
# compose
a
Has anyone been able to successfully return a result of a navigation from
compose-navigation
? I could get the results from
NavBackStackEntry.savedStateHandle
, but I’m not sure where that code belongs… Do you pass it as state? https://github.com/android/compose-samples/blob/main/Owl/app/src/main/java/com/example/owl/ui/NavGraph.kt#L75-L85
i
savedStateHandle.getLiveData("key").observeAsState()
We talk more about state from LiveData, etc. in the state guide: https://developer.android.com/jetpack/compose/state#use-other-types-of-state-in-jetpack-compose
a
I see. So it's basically treated just like any other state.