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

Function buildMutation

packages/query-devtools/src/__tests__/utils.test.ts:1200–1204  ·  view source on GitHub ↗
(overrides: Partial<Mutation['state']>)

Source from the content-addressed store, hash-verified

1198 }
1199
1200 function buildMutation(overrides: Partial<Mutation['state']>): Mutation {
1201 return queryClient
1202 .getMutationCache()
1203 .build(queryClient, {}, { ...defaultMutationState, ...overrides })
1204 }
1205
1206 beforeEach(() => {
1207 queryClient = new QueryClient()

Callers 1

utils.test.tsFile · 0.85

Calls 2

getMutationCacheMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected