robnik
04/24/2021, 3:19 AMviewModel()
function, but don't show where to import it. IntelliJ is not helping me. Where is it? (Not sure why I need this magic function. Can I just create my ViewModel like a normal object?)Ian Lake
04/24/2021, 3:44 AMIan Lake
04/24/2021, 3:45 AMViewModel
is that it survives configuration changes. As such, it is managed by the system. It is the viewModel()
method that knows whether that ViewModel has already been created (and the retained instance just returned again) or if it needs to be created for the first time