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

Function Mutation

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

Source from the content-addressed store, hash-verified

51 }
52
53 function Mutation() {
54 const { mutate } = useMutation(mutationOpts)
55
56 return (
57 <div>
58 <button onClick={() => mutate()}>mutate</button>
59 </div>
60 )
61 }
62
63 function Page() {
64 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