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

Function Variables

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

useMutationStateFunction · 0.50

Tested by

no test coverage detected