Hash sets correcly
JSON.stringify doesn't work correcly with sets. i have an object with filters that are sets and i pass these into the query function, whenever the set changes it doesn't change the queryKey correctly
Is there something we can do to let this work? i tried
but no luck, i really wish to keep using sets
2 Replies
broad-brownOP•2y ago
for now this fixed it for me
firm-tan•2y ago
Provide your custom
queryKeyHashFn
https://tanstack.com/query/latest/docs/framework/react/reference/useQuery