Skip to content

Call or use mutation inside middleware or baseQuery #4153

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

You must be logged in to vote

https://redux-toolkit.js.org/rtk-query/usage/code-splitting

Calling injectEndpoints will inject the endpoints into the original API, but also give you that same API with correct types for these endpoints back. (Unfortunately, it cannot modify the types for the original definition.)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@shurshilov
Comment options

@EskiMojo14
Comment options

Answer selected by shurshilov
@shurshilov
Comment options

@phryneas
Comment options

@shurshilov
Comment options

@EskiMojo14
Comment options

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