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

Method getDefaultOptions

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

* Returns the default options that were set when creating the client, or via * QueryClient#setDefaultOptions. * @returns The client's current default options. * @example * ```ts * import { QueryClient } from '@tanstack/query-core' * * const queryClient = new QueryClient(

()

Source from the content-addressed store, hash-verified

895 * ```
896 */
897 getDefaultOptions(): DefaultOptions {
898 return this.#defaultOptions
899 }
900
901 /**
902 * Dynamically sets the default options for this client, overwriting any previously defined

Callers 7

configureQueryClientFunction · 0.80
dehydrateFunction · 0.80
hydrateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected