T
TanStack3y ago
absent-sapphire

mutationFn context?

Hi, I was wondering if there was a reason that the mutation context is not exposed in the mutationFn (as it is in the queryFn)?
2 Replies
ambitious-aqua
ambitious-aqua3y ago
Because there is no context like the queryFunctionContext that we can pass to it, because mutate already accepts variables of any kind
absent-sapphire
absent-sapphireOP3y ago
Gotcha, thank you!

Did you find this page helpful?