Don't do this, you may risk memory leaks. Juste ma...
# android-architecture
l
Don't do this, you may risk memory leaks. Juste make your View/Activity/Fragment aware of the state if needed (e.g. change button text), and call a method on the ViewModel on click. Then, your ViewModel, which knows the state for sure handles the method call differently