diff --git a/index.js b/index.js index 6d4729b..1033ea8 100644 --- a/index.js +++ b/index.js @@ -232,7 +232,7 @@ function defaultOnError (err) { } function wrapOnError (onError) { - return function onErrorWrap (err) { - if (err) onError(err) + return function onErrorWrap (err, state, createSend) { + if (err) onError(err, state, createSend) } } diff --git a/package.json b/package.json index 0eeab7e..450a730 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "barracks", - "version": "8.1.1", + "version": "8.2.0", "description": "Action dispatcher for unidirectional data flows", "main": "index.js", "scripts": {