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

Function Variables

packages/solid-query/src/__tests__/useMutationState.test.tsx:67–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 const mutationKey = createKey()
66
67 function Variables() {
68 const states = useMutationState(() => ({
69 filters: { mutationKey, status: 'pending' },
70 select: (mutation) => mutation.state.variables,
71 }))
72
73 createEffect(() => {
74 variables.push(states())
75 })
76
77 return null
78 }
79
80 function Mutate() {
81 const mutation = useMutation(() => ({

Callers

nothing calls this directly

Calls 1

useMutationStateFunction · 0.50

Tested by

no test coverage detected