Skip to content

Commit

Permalink
Merge pull request #2351 from reduxjs/bugfix/2344-remove-listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed May 25, 2022
2 parents 52e826f + 0e410cf commit 3d7bd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/toolkit/src/listenerMiddleware/index.ts
Expand Up @@ -317,7 +317,7 @@ export function createListenerMiddleware<
const findListenerEntry = (
comparator: (entry: ListenerEntry) => boolean
): ListenerEntry | undefined => {
for (const entry of listenerMap.values()) {
for (const entry of Array.from(listenerMap.values())) {
if (comparator(entry)) {
return entry
}
Expand Down

0 comments on commit 3d7bd22

Please sign in to comment.