MCPcopy Index your code
hub / github.com/TanStack/query / Variables

Function Variables

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

Source from the content-addressed store, hash-verified

24 const mutationKey = ['mutation']
25
26 function Variables() {
27 const states = useMutationState(() => ({
28 filters: { mutationKey, status: 'pending' },
29 select: (mutation) => mutation.state.variables,
30 }))
31
32 createEffect(() => {
33 variables.push(states())
34 })
35
36 return null
37 }
38
39 function Mutate() {
40 const mutation = useMutation(() => ({

Callers

nothing calls this directly

Calls 1

useMutationStateFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…