Open gregsanborn opened 6 years ago
There is a TODO tag in TasksRepository
class, planing implement it using LiveData.
How easy to refactor it using LiveData
? i'm planning to use it. do i have to replace databinding?
LiveData is designed to be the interface between view and viewmodel. You can use it beyond the vm, but things get complicated so we didn't want to mislead. We're thinking about releasing a standalone sample that showcases LiveData in other layers of the app.
I was looking for examples of using LiveData class, but it's not here, despite the sample name *-live.