refactor: pass nav args to ViewModel using SavedStateHandle

This commit is contained in:
andrekir 2024-11-09 06:46:47 -03:00 committed by Andre K
parent 296f1944b7
commit 1ae65ef267
4 changed files with 38 additions and 64 deletions

View file

@ -120,7 +120,6 @@ class NavGraphFragment : ScreenFragment("NavGraph"), Logging {
"NodeDetails" -> Route.NodeDetail(destNum!!)
else -> Route.RadioConfig(destNum)
}
model.setDestNum(destNum)
return ComposeView(requireContext()).apply {
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)