Observe LiveData from ViewModel in Fragment
4 min readApr 17, 2019
Google introduced Android architecture components which are basically a collection of libraries that facilitate robust design, testable, and maintainable apps. It includes convenient and less error-prone handling of LifeCycle and prevents memory leaks.
Although these components are easy to use with exhaustive documentation, using them inappropriately leads to several issues which could be…