Ok, I’m still learning about this, so sorry if the...
# redux-kotlin
g
Ok, I’m still learning about this, so sorry if there are some basic errors. I’m trying to do everything myself to understand the pattern better. My store has this function:
Copy code
fun dispatchAction(action: Action) {
        val result : Pair<State, Command> = stateManager.update(state, action)
        this.state = result.first
        // TODO: Handle command
        // TODO: Notify state changed
    }