Archie
05/18/2020, 10:36 AMval viewModel by sharedViewModel<SomeViewModel>(from = { parentFragment!! }) but the from seems to be removed in the current 2.1.5 version. Any reason why was it removed? and what to do instead?aipok
05/18/2020, 10:47 AMrequireParentFragment().sharedViewModel()
?Archie
05/18/2020, 10:48 AMaipok
05/18/2020, 10:50 AMArchie
05/18/2020, 10:51 AMparentFragment.sharedViewModel() still scopes the viewModel to the activity and not the parent fragment... maybe parentFragment.viewModel() instead?aipok
05/18/2020, 10:53 AMArchie
05/18/2020, 10:55 AM