How to access MutationMeta from the mutation function? #8543
Unanswered
bitgoAaron
asked this question in
Q&A
Replies: 1 comment
-
Right now it isn’t passed, but for mutations, you can just pass it as an additional variable. |
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
-
I followed the steps from the docs on registering global meta:
https://tanstack.com/query/latest/docs/framework/react/typescript#registering-global-meta
I have query functions that are able to reference this from the context. How can my mutation functions do the same, when the type for MutationFunction doesn't pass context ? Am I missing something obvious here, or is this not supported?
Beta Was this translation helpful? Give feedback.
All reactions