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

Method getDefaultOptions

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

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

()

Source from the content-addressed store, hash-verified

822 * ```
823 */
824 getDefaultOptions(): DefaultOptions {
825 return this.#defaultOptions
826 }
827
828 /**
829 * Dynamically sets the default options for this client, overwriting any previously defined

Callers 5

dehydrateFunction · 0.80
hydrateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected