Optional
filterFilter function called whenever each action starts, and only then.
If the action is accepted then onStart
, onResume
, onSuspend
and onFinish
for that particular action will be called.
All actions are accepted by default if no filter function is present.
Simplified action context.
true to accept the action, false to skip it.
Optional
onCalled when an action just finished, either by returning normally or by throwing an error.
Simplified action context.
Action return result.
Can optionally return a new result that will override the original one.
Optional
onCalled when an action just resumed a synchronous piece of code execution. Gets called once for sync actions and multiple times for flows.
Simplified action context.
Optional
onCalled when an action just started.
Simplified action context.
Can optionally return a result that will cancel the original action and finish it with the returned value / error to be thrown. In either case case resume / suspend / finish will still be called normally.
Optional
onCalled when an action just finished a synchronous pice of code execution. Note that this doesn't necessarily mean the action is finished. Gets called once for sync actions and multiple times for flows.
Simplified action context.
Action tracking middleware hooks.