Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

QueryClientConfig.md

17 lines990 Bytes

1---
2id: QueryClientConfig
3title: QueryClientConfig
4---
5​
6Defined in: [packages/query-core/src/types.ts:2361](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L2361)
7​
8The options of `new QueryClient()`: the `queryCache` and `mutationCache` to use, and the
9`defaultOptions` for its queries and mutations.
10​
11## Properties
12​
13| Property | Type | Description |
14| ------ | ------ | ------ |
15| <a id="property-defaultoptions"></a> `defaultOptions?` | [`DefaultOptions`](DefaultOptions.md)\<`Error`\> | Default options for all queries and mutations created through this client. |
16| <a id="property-mutationcache"></a> `mutationCache?` | [`MutationCache`](../classes/MutationCache.md) | The mutation cache this client is connected to. A new `MutationCache` is created if not provided. |
17| <a id="property-querycache"></a> `queryCache?` | [`QueryCache`](../classes/QueryCache.md) | The query cache this client is connected to. A new `QueryCache` is created if not provided. |