amatkivskiy
01/02/2019, 11:45 AMViewModel
can have another ViewModel as constructor dependency ?
Something like this
viewModel { BasketViewModel(get()) }
viewModel { SelectProductViewModell(get(), basketViewModel) }
kzotin
01/02/2019, 9:29 PMrepositories
to share state OR inject use cases
for sharing logicamatkivskiy
01/03/2019, 4:34 PMamatkivskiy
01/03/2019, 4:37 PMamatkivskiy
01/03/2019, 4:39 PMkzotin
01/10/2019, 8:52 PMSelectProductViewModel
sets value in ProductRepository
, BasketViewModel
observes changesamatkivskiy
01/12/2019, 4:55 AMamatkivskiy
01/22/2019, 3:50 AMSelectProductViewModel
which is implemented by BasketViewModel
? The only thing that should be taken into account is lifecycles of the viewmodels otherwise we can face a memory leak.