mvrx-mocking / com.airbnb.mvrx.mocking / MockBehavior / subscribeViewToStateUpdates

subscribeViewToStateUpdates

val subscribeViewToStateUpdates: Boolean

If true, when a view registers a ViewModel via a delegate the view will be subscribed to changes to the state view MavericksView.postInvalidate. This is the normal behavior of MvRx. This can be set to false so that a Fragment is not updated for state changes during tests.