How to manually destroy or recreate a ViewModel
Working on an Android app where each user can have multiple accounts under the same login. There is a single activity with a fragment per tab - based on the Android sample Bottom Navigation.
On one of the tabs is a calendar, which is hooked up to a ViewModel like so:
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View {
val calendarViewModel =...