-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass abort reason of thunk action to AbortController #2395
Comments
|
There is a MDN overview for It's also supported on node with version v16 and above: https://nodejs.org/docs/latest-v16.x/api/globals.html#abortcontrollerabortreason Are there other platforms do you mean? |
In
We could reuse |
…vided to asyncThunkHandle.abort reduxjs#2395 Other changes: fixes signal.aborted not set in AbortController shim
Hi,
I noticed that the abort reason of a thunk action is not getting passed down to the
AbortController
in line 578:redux-toolkit/packages/toolkit/src/createAsyncThunk.ts
Lines 575 to 580 in 64a30d8
It would be useful to get the abort reason directly in the thunk action, so the thunk can cleanup its states.
thx
The text was updated successfully, but these errors were encountered: