dispatch-next-action
usage
staticMiddleware([context][...middleware])
const middleware = const dispatch =
dynamicMiddleware([context][...middleware])
const logger = { console return } const dispatch = dispatch
middleware signature
(dispatch, context, onDelete) => next => (...args) => {}
Any function registered with onDelete will be called when middleware is removed.
Instance methods
dispatch([...args])
dispatch.includes(middleware)
dispatch.push(middleware[, ...middleware])
dispatch.unshift(middleware[, ...middleware])
dispatch.splice(start, deleteCount[, ...middleware])
dispatch.splice(start[, ...middleware])
dispatch.clear()
dispatch.delete(middleware[, ...middleware])
bridge
const dynamic = const dispatch = // [ 1, 2, 3 ]