I essentially need a navGraphSavedStateViewModel. ...
# koin
v
I essentially need a navGraphSavedStateViewModel. Any ideas?
m
Ignoring Koin for the moment... is this supported by the Jetpack
ViewModel
system? Saved state is intrinsically tied to an activity or a fragment's saved instance state
Bundle
. Where does the saved state come from for a nav graph? I'm guessing this is supported, since
NavHostFragment
and
NavBackStackEntry
both implement
SavedStateRegistryOwner
, but I'm not 100% convinced.