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

Method getDefaultOptions

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

900 * ```
901 */
902 getDefaultOptions(): DefaultOptions {
903 return this.#defaultOptions
904 }
905
906 /**
907 * 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