Optional
actionThe dispatched Redux action. If the action was dispatched by
a Saga then the action will have a property SAGA_ACTION
set to true
(SAGA_ACTION
can be imported from @redux-saga/symbols
).
Optional
effectThe ID of the yielded effect
Optional
effectThe ID of the yielded effect
Error raised with the rejection of the effect
Optional
effectThe ID of the yielded effect
The result of the successful resolution of the effect. In
case of fork
or spawn
effects, the result will be a Task
object.
Optional
effectOptional
root
Used by the middleware to dispatch monitoring events. Actually the middleware dispatches 6 events:
When a root saga is started (via
runSaga
orsagaMiddleware.run
) the middleware invokessagaMonitor.rootSagaStarted
When an effect is triggered (via
yield someEffect
) the middleware invokessagaMonitor.effectTriggered
If the effect is resolved with success the middleware invokes
sagaMonitor.effectResolved
If the effect is rejected with an error the middleware invokes
sagaMonitor.effectRejected
If the effect is cancelled the middleware invokes
sagaMonitor.effectCancelled
Finally, the middleware invokes
sagaMonitor.actionDispatched
when a Redux action is dispatched.