Observe a LiveData and execute an action when the value is changed.
The action to be executed when the value is changed.