Now with the View model as we can handle the configuration changes and manage the UI data, So the onSaveInstance() I feel now if of no use for me.
Like earlier we used to store smaller data onSaveInstanceState() and used to restore it during configuration, now using view model we can easily get the updated data. So could you please tell me whats the actual usage of onSaveInstanceState() and onRestoreInstancestate() now if we are using ViewModel.
Could you please tell me the usage of it in the current case with ViewModel