How can you extend thunk MiddlewareApi? #4232
-
Beta Was this translation helpful? Give feedback.
Answered by
EskiMojo14
Feb 21, 2024
Replies: 1 comment 2 replies
-
you can provide an extra argument to thunks when initialising your store, which would be thunkApi.extra: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Eonfuzz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can provide an extra argument to thunks when initialising your store, which would be thunkApi.extra:
https://redux-toolkit.js.org/api/getDefaultMiddleware#customizing-the-included-middleware