Created
April 13, 2022 17:18
-
-
Save linean/9f14e4877c0f5cf60b2e99c671478b84 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
fun <STATE, EVENT> ViewModel.StateReducerFlow( | |
initialState: STATE, | |
reduceState: (STATE, EVENT) -> STATE, | |
): StateReducerFlow<STATE, EVENT> = StateReducerFlowImpl(initialState, reduceState, viewModelScope) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Article: https://maciej-sady.medium.com/all-you-need-for-mvi-is-kotlin-how-to-reduce-without-reducer-5e986856610f
Project: https://github.com/linean/StateReducerFlow