Skip to content

Commit 37d9ee2

Browse files
committed
docs(alm): remove incorrect info
1 parent ce493e3 commit 37d9ee2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/action-listener-middleware/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ middleware.removeListener({
201201
A standard RTK action creator that tells the middleware to dynamically add a new listener at runtime. It accepts exactly the same options as `middleware.addListener()`
202202

203203
Dispatching this action returns an `unsubscribe()` callback from `dispatch`.
204-
It throws error if listener is not a function.
205204

206205
```js
207206
// Per above, provide `predicate` or any of the other comparison options
@@ -212,7 +211,7 @@ const unsubscribe = store.dispatch(addListenerAction({ predicate, listener }))
212211

213212
A standard RTK action creator that tells the middleware to remove a listener at runtime. Accepts the same arguments as `middleware.removeListener()`:
214213
Returns `true` if the `options.listener` listener has been removed, `false` if no subscription matching the input provided has been found.
215-
It throws error if listener is not a function.
214+
216215

217216
```js
218217
store.dispatch(removeListenerAction({ predicate, listener }))

0 commit comments

Comments
 (0)