File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/toolkit/src/listenerMiddleware Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import {
30
30
addAbortSignalListener ,
31
31
assertFunction ,
32
32
catchRejection ,
33
+ noop ,
33
34
} from './utils'
34
35
import {
35
36
listenerCancelled ,
@@ -113,7 +114,7 @@ const createFork = (
113
114
)
114
115
115
116
if ( opts ?. autoJoin ) {
116
- parentBlockingPromises . push ( result )
117
+ parentBlockingPromises . push ( result . catch ( noop ) )
117
118
}
118
119
119
120
return {
@@ -439,7 +440,7 @@ export function createListenerMiddleware<
439
440
} )
440
441
}
441
442
} finally {
442
- await Promise . allSettled ( autoJoinPromises )
443
+ await Promise . all ( autoJoinPromises )
443
444
444
445
abortControllerWithReason ( internalTaskController , listenerCompleted ) // Notify that the task has completed
445
446
entry . pending . delete ( internalTaskController )
You can’t perform that action at this time.
0 commit comments