Skip to content

react-query previousData in placeholderData ignores requests that hit cache #6340

Answered by TkDodo
kimwes asked this question in Q&A
Discussion options

You must be logged in to vote

thanks for the reproduction, this indeed looks like a bug. @ardeora maybe you can look into this? I remember you did some work on keepPreviousData in v5. I think we store lastQueryWithDefinedData and this could be the reason here

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kimwes
Comment options

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