Skip to content

Commit 7c5bd31

Browse files
committed
docs(action-listener-middleware): document onError in api reference
1 parent d4bcccd commit 7c5bd31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/action-listener-middleware/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Current options are:
100100

101101
- `extra`: an optional "extra argument" that will be injected into the `listenerApi` parameter of each listener. Equivalent to [the "extra argument" in the Redux Thunk middleware](https://redux.js.org/usage/writing-logic-thunks#injecting-config-values-into-thunks).
102102

103+
- `onError`: an optional error handler that gets called with synchronous errors raised by `listener` and `predicate`.
104+
103105
### `listenerMiddleware.addListener(predicate, listener, options?) : Unsubscribe`
104106

105107
Statically adds a new listener callback to the middleware.

0 commit comments

Comments
 (0)