-
-
Save MaxMichel2/13972973d70a85a0c35d3eed9ffdc414 to your computer and use it in GitHub Desktop.
The interface defining the structure of a reducer in an MVI architecture in Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Reducer<State : Reducer.ViewState, Event : Reducer.ViewEvent, Effect : Reducer.ViewEffect> { | |
interface ViewState | |
interface ViewEvent | |
interface ViewEffect | |
fun reduce(previousState: State, event: Event): Pair<State, Effect?> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment