Skip to content

How can you extend thunk MiddlewareApi? #4232

Answered by EskiMojo14
Eonfuzz asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Eonfuzz
Comment options

@EskiMojo14
Comment options

Answer selected by Eonfuzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants