T
TanStack3y ago
flat-fuchsia

Does Date objects in keys are treated as equal if they have different references but the same time?

I thought that it only treats as equal primitives with the same value or objects with the same reference. But it seems that it does toString() or json.stringify for Date objects to compare or something like this. Is it correct?
1 Reply
xenial-black
xenial-black3y ago
Yes, keys are json stringified. If you need something else, you can provide your own queryKeyHashFn

Did you find this page helpful?