Skip to content

View state rework

Compare
Choose a tag to compare
@FunkyMuse FunkyMuse released this 02 May 21:40

Breaking changes:
ViewState has a ViewStatefulEvent.kt as a state descriptor and payload as something that holds the value

ViewStateContract.kt data is now renamed to viewState

ViewEventContract now doesn't force you to integrate

val viewEvent: Flow

and is also a functional contract

Check MVIFragment.kt for sample