Optional
channelSee docs for channel
Optional
contextSee docs for createSagaMiddleware(options)
Optional
effectSee docs for createSagaMiddleware(options)
Optional
sagaSee docs for createSagaMiddleware(options)
Optional
dispatchUsed to fulfill put
effects.
argument provided by the Saga to the put
Effect
Optional
getUsed to fulfill select
and getState
effects
Optional
onSee docs for createSagaMiddleware(options)
The
{subscribe, dispatch}
is used to fulfilltake
andput
Effects. This defines the Input/Output interface of the Saga.subscribe
is used to fulfilltake(PATTERN)
effects. It must callcallback
every time it has an input to dispatch (e.g. on every mouse click if the Saga is connected to DOM click events). Each timesubscribe
emits an input to its callbacks, if the Saga is blocked on atake
effect, and if the take pattern matches the currently incoming input, the Saga is resumed with that input.dispatch
is used to fulfillput
effects. Each time the Saga emits ayield put(output)
,dispatch
is invoked with output.