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

Function Mutation

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

Source from the content-addressed store, hash-verified

46 })
47
48 function Mutation() {
49 const isMutating = useIsMutating()
50 const { mutate } = useMutation(() => mutationOpts)
51
52 createRenderEffect(() => {
53 isMutatingArray.push(isMutating())
54 })
55
56 return (
57 <div>
58 <button onClick={() => mutate()}>mutate</button>
59 </div>
60 )
61 }
62
63 const rendered = renderWithClient(queryClient, () => <Mutation />)
64

Callers

nothing calls this directly

Calls 4

useIsMutatingFunction · 0.50
useMutationFunction · 0.50
mutateFunction · 0.50
useMutationStateFunction · 0.50

Tested by

no test coverage detected