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

Function Mutations

packages/solid-query/src/__tests__/useIsMutating.test.tsx:37–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 function Mutations() {
38 const { mutate: mutate1 } = useMutation(() => ({
39 mutationKey: ['mutation1'],
40 mutationFn: () => sleep(150).then(() => 'data'),
41 }))
42 const { mutate: mutate2 } = useMutation(() => ({
43 mutationKey: ['mutation2'],
44 mutationFn: () => sleep(50).then(() => 'data'),
45 }))
46
47 createEffect(() => {
48 mutate1()
49 setActTimeout(() => {
50 mutate2()
51 }, 50)
52 })
53
54 return null
55 }
56
57 function Page() {
58 return (

Callers

nothing calls this directly

Calls 3

sleepFunction · 0.90
setActTimeoutFunction · 0.90
useMutationFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…