Skip to content

Listener middleware triggers predicates for non-actions, despite typing #3371

Closed
@EskiMojo14

Description

@EskiMojo14

createListenerMiddleware calls its listener predicates for anything that's dispatched, regardless of whether it's an object. on the other hand, its typing assumes that it'll only ever be called with action objects.

it would probably make sense to only check listeners if it's actually an action (plain object with .type)

basic reproduction

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions