Skip to content

Caching mechanism error in VueJS #7256

Answered by DamianOsipiuk
ScreamZ asked this question in Q&A
Discussion options

You must be logged in to vote

initialData is treated like a valid response, therefore when you change the queryKey it will use initialData and do not refetch it due to staleTime: Infinity.

You could try with placeholderData.

Replies: 1 comment 1 reply

Comment options

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

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