MCPcopy Create free account
hub / github.com/TanStack/query / Mutation

Function Mutation

packages/react-query/src/__tests__/mutationOptions.test.tsx:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47 }
48
49 function Mutation() {
50 const { mutate } = useMutation(mutationOpts)
51
52 return (
53 <div>
54 <button onClick={() => mutate()}>mutate</button>
55 </div>
56 )
57 }
58
59 function Page() {
60 return (

Callers

nothing calls this directly

Calls 4

useMutationFunction · 0.50
mutateFunction · 0.50
useMutationStateFunction · 0.50
isMutatingMethod · 0.45

Tested by

no test coverage detected