Skip to content

QueryFn did not change when queryKeys include object #7406

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

You must be logged in to vote

the issue is the same in all versions: the key is not serializable. don't put functions in the key, and if you must, provide a queryKeyHashFn that can serialize it to something unique.

Replies: 1 comment 2 replies

Comment options

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

@TkDodo
Comment options

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