Skip to content
Discussion options

You must be logged in to vote

queryKeys and queryFn come in pairs. The cache is just a js object where the key of the object is the serialized queryKey, and the value of that entry in the object is the awaited result of the queryFn.

So you can't really have the same key with different query functions that produce different results. If you produce a different result, please use a separate key, as keys have to be unique.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by geekox86
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