Closed brittanyberlanga closed 4 years ago
Using the viewModel delegate does not make sure the view model is tied to a specific scope. In order to specify child Fragments to use the correct view model, ViewModelProvider needs to be used, otherwise multiple instances will be created.
viewModel
Fragment
ViewModelProvider
Using the
viewModel
delegate does not make sure the view model is tied to a specific scope. In order to specify childFragment
s to use the correct view model,ViewModelProvider
needs to be used, otherwise multiple instances will be created.