We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 52e826f + 0e410cf commit 3d7bd22Copy full SHA for 3d7bd22
packages/toolkit/src/listenerMiddleware/index.ts
@@ -317,7 +317,7 @@ export function createListenerMiddleware<
317
const findListenerEntry = (
318
comparator: (entry: ListenerEntry) => boolean
319
): ListenerEntry | undefined => {
320
- for (const entry of listenerMap.values()) {
+ for (const entry of Array.from(listenerMap.values())) {
321
if (comparator(entry)) {
322
return entry
323
}
0 commit comments