MCPcopy
hub / github.com/TanStack/query / Mutates

Function Mutates

packages/solid-query/src/__tests__/useMutation.test.tsx:752–755  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

750 // eslint-disable-next-line vitest/expect-expect
751 it('should not change state if unmounted', () => {
752 function Mutates() {
753 const mutation = useMutation(() => ({ mutationFn: () => sleep(10) }))
754 return <button onClick={() => mutation.mutate()}>mutate</button>
755 }
756 function Page() {
757 const [mounted, setMounted] = createSignal(true)
758 return (

Callers

nothing calls this directly

Calls 3

sleepFunction · 0.90
useMutationFunction · 0.50
mutateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…