OptionalchannelSee docs for channel
OptionalcontextSee docs for createSagaMiddleware(options)
OptionaleffectSee docs for createSagaMiddleware(options)
OptionalsagaSee docs for createSagaMiddleware(options)
OptionaldispatchUsed to fulfill put effects.
argument provided by the Saga to the put Effect
OptionalgetUsed to fulfill select and getState effects
OptionalonSee docs for createSagaMiddleware(options)
The
{subscribe, dispatch}is used to fulfilltakeandputEffects. This defines the Input/Output interface of the Saga.subscribeis used to fulfilltake(PATTERN)effects. It must callcallbackevery time it has an input to dispatch (e.g. on every mouse click if the Saga is connected to DOM click events). Each timesubscribeemits an input to its callbacks, if the Saga is blocked on atakeeffect, and if the take pattern matches the currently incoming input, the Saga is resumed with that input.dispatchis used to fulfillputeffects. Each time the Saga emits ayield put(output),dispatchis invoked with output.