Open hernandazevedozup opened 4 years ago
There shouldn't even be a loadUsers()
method. It should be internal to the workings of the liveData
, triggered in onActive
by starting to observe it.
See NetworkBoundResource
for a possible complex implementation, but the general idea is there.
What is the best approach?