Would it be possible to support a mutationKeyHashFn option? #7457
Unanswered
luke-layerhealth
asked this question in
Ideas
Replies: 2 comments
-
sorry for the late reply; yeah I think it would be good to have that for consistency 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @luke-layerhealth did you manage to find a work-around? I'm also using bigints which is crashing on the hash function. Edit: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My keys can contain
bigInt
which isn't JSON serializable. I don't have direct control over the keys since I'm using connect-query-es. These keys are not compatible with the defaulthashKey
. I can provide my ownhashKey
implementation usingqueryKeyHashFn
but there is no similar option for mutation keys. If you're cool with it I'll provide a PR adding themutationKeyHashFn
following the same patterns and tests used by thequeryKeyHashFn
implementation.@TkDodo tagging you since you've been quite quick responding to these previously and I'm willing to put up a PR.
Beta Was this translation helpful? Give feedback.
All reactions