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.
dispatch
1 parent 6f3900d commit ae4fc54Copy full SHA for ae4fc54
packages/toolkit/src/createAsyncThunk.ts
@@ -617,7 +617,7 @@ export const createAsyncThunk = /* @__PURE__ */ (() => {
617
}
618
abortController.signal.addEventListener('abort', abortHandler)
619
})
620
- dispatch(
+ ;(dispatch as ThunkDispatch<unknown, unknown, UnknownAction>)(
621
pending(
622
requestId,
623
arg,
@@ -679,7 +679,9 @@ export const createAsyncThunk = /* @__PURE__ */ (() => {
679
(finalAction as any).meta.condition
680
681
if (!skipDispatch) {
682
- dispatch(finalAction as any)
683
+ finalAction as any,
684
+ )
685
686
return finalAction
687
})()
0 commit comments