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
conscious-sapphireOP•17mo ago
for now this fixed it for me
other-emerald•17mo ago
Provide your custom
queryKeyHashFn
https://tanstack.com/query/latest/docs/framework/react/reference/useQuery