hook
Last updated
Last updated
Listen to certain dispatched action.
@paramaters
@return
Name
Type
Description
actionQuery
string
string[]
RegExp
Query that control the hook to only respond on certain dispatched actions. It can be a string
for querying single action or it can be an array of string
or RegExp
to query multiple actions.
reducer(s)
function
function[]
Function(s) that called after the dispatched action are passed to actionQuery
test. Function should be look like: function (state, calls) {...}
Type
Description
HookLink
HookLink
instance, can be used for removing the hook from store.