InitializerContext

constructor(getState: GetState<State>, dispatch: Dispatcher<Action>, reduce: suspend (proposal: Proposal) -> Unit, launchBlock: Launch)

Parameters

getState

returns the current state

dispatch

dispatches an action

reduce

reduces a proposal

launchBlock

launch a coroutine without exposing the bloc's CoroutineScope, it's internal to allow for JobConfig default values via extension functions