MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / getMutationDefaults

Method getMutationDefaults

src/queryCore/core/queryClient.ts:572–580  ·  view source on GitHub ↗
(
    mutationKey?: MutationKey
  )

Source from the content-addressed store, hash-verified

570 }
571
572 getMutationDefaults(
573 mutationKey?: MutationKey
574 ): MutationObserverOptions<any, any, any, any> | undefined {
575 return mutationKey
576 ? this.mutationDefaults.find(x =>
577 partialMatchKey(mutationKey, x.mutationKey)
578 )?.defaultOptions
579 : undefined
580 }
581
582 defaultQueryOptions<
583 TQueryFnData,

Callers 2

buildMethod · 0.80

Calls 2

partialMatchKeyFunction · 0.90
findMethod · 0.45

Tested by

no test coverage detected