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

Method setDefaultOptions

packages/query-core/src/queryClient.ts:919–921  ·  view source on GitHub ↗

* Dynamically sets the default options for this client, overwriting any previously defined * default options. * @param options - The new default options for queries and mutations. * @see QueryClient#getDefaultOptions * @example * ```ts * import { QueryClient } from '@tansta

(options: DefaultOptions)

Source from the content-addressed store, hash-verified

917 * ```
918 */
919 setDefaultOptions(options: DefaultOptions): void {
920 this.#defaultOptions = options
921 }
922
923 /**
924 * Sets default options for queries whose query key partially matches the given `queryKey`.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected