TanStackT
TanStackโ€ข4y agoโ€ข
5 replies
endless-jade

Purpose of mutationKey in useMutation

Hi, can anyone explain to me what is the purpose of mutationKey - there is very little information in the docs - it mentioned that this can be used to identify mutations in the dev tools but so far I am not able to inspect any mutation in the dev tools - I only see queries. What is the purpose of mutationKey and is it best practice to always put it in
useMutation
? Thank you! ๐Ÿ™‚
Was this page helpful?