Skip to content

RTK Query: How can you force dispatch an API error on null HTTP 200 responses? #2293

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

You must be logged in to vote

Not really - do this in a baseQuery wrapper, not in a middleware.

Replies: 1 comment 2 replies

Comment options

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

@ealexhaywood
Comment options

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