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

Function buildMutation

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

Source from the content-addressed store, hash-verified

1236 }
1237
1238 function buildMutation(overrides: Partial<Mutation['state']>): Mutation {
1239 return queryClient
1240 .getMutationCache()
1241 .build(queryClient, {}, { ...defaultMutationState, ...overrides })
1242 }
1243
1244 beforeEach(() => {
1245 queryClient = new QueryClient()

Callers 1

utils.test.tsFile · 0.85

Calls 2

getMutationCacheMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected