Skip to content

RTK Query: results from different query arguments returned on error #3349

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

You must be logged in to vote

see Frequently Used Query Hook Return Values for the difference between data and currentData:

  • data - The latest returned result regardless of hook arg, if present.
  • currentData - The latest returned result for the current hook arg, if present.

you can see that your sandbox behaves the way you expected when using currentData.

Replies: 1 comment 2 replies

Comment options

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

@dumaron
Comment options

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