Skip to content

Using RTK query to fetching data inside of a thunk #1752

Answered by phryneas
agusterodin asked this question in Q&A
Discussion options

You must be logged in to vote

Dispatch<any> should be ThunkDispatch<AnyAction>.

Also, make sure to use the 1.7 beta, that is much more consistent in these situations

Replies: 1 comment 2 replies

Comment options

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

@phryneas
Comment options

Answer selected by agusterodin
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