Nthily
05/25/2021, 4:12 PMHilt
, but when I use navigation to jump to another page, the viewModel
I get from that page is not the same as the viewModel
I get herems
05/25/2021, 4:46 PMNavBackStackEntry
to hiltViewModel
method as a param and use the VM which is returnedChachako
05/25/2021, 4:50 PMNavHost
to share each navigation item. But I remember @Ian Lake once told me that it is best not to (but can) do this? 🤯Nthily
05/25/2021, 4:53 PMjson
data, and save to the viewModel
, and it will be used when loading to welcomPageChachako
05/25/2021, 5:02 PMyes, when i launch app, i need to get aOops, if you want to do this, I think you can take a look at this thread: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1616425435392400data, and save to thejson
, and it will be used when loading to welcomPageviewModel