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

Method getDefaultOptions

packages/query-core/src/queryClient.ts:898–900  ·  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

896 * ```
897 */
898 getDefaultOptions(): DefaultOptions {
899 return this.#defaultOptions
900 }
901
902 /**
903 * 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