I have a List
on the VM that I want to use in the activity.
This List won’t change on time, will always be the same, so it is not a State
.
Should I do the following on the activity?
private val gymListViewModel: GymListViewModel by viewModels()
val myList = gymListViewModel.list
Is that correct?
Or what I should do is use LiveData
or Flow
to be listening on the activity?
I’m asking this in terms of best practices.
Thanks