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

Function Mutation

packages/preact-query/src/__tests__/mutationOptions.test.tsx:55–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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