Files
upstream-tanstack-query/docs/framework/solid/reference/interfaces/QueryClientConfig.md
upstream-mirror 3a013ccdfe
Some checks failed
autofix.ci / autofix (push) Failing after 4s
Release / Release (push) Has been skipped
GitHub Actions Security Analysis / Run zizmor (push) Failing after 2s
snapshot of https://github.com/TanStack/query.git (main, 2026-09-16; blobs > 131072B omitted)
2026-09-16 01:13:08 +05:00

68 lines
1.4 KiB
Markdown

---
id: QueryClientConfig
title: QueryClientConfig
---
Defined in: [packages/solid-query/src/QueryClient.ts:105](https://github.com/TanStack/query/blob/main/packages/solid-query/src/QueryClient.ts#L105)
The config accepted by `new QueryClient(config)`, with Solid's extended [DefaultOptions](DefaultOptions.md).
## Extends
- `QueryClientConfig`
## Properties
### defaultOptions?
```ts
optional defaultOptions: DefaultOptions<Error>;
```
Defined in: [packages/solid-query/src/QueryClient.ts:106](https://github.com/TanStack/query/blob/main/packages/solid-query/src/QueryClient.ts#L106)
Default options for all queries and mutations created through this client.
#### Overrides
```ts
QueryCoreClientConfig.defaultOptions
```
***
### mutationCache?
```ts
optional mutationCache: MutationCache;
```
Defined in: [packages/query-core/src/types.ts:1502](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L1502)
The mutation cache this client is connected to. A new `MutationCache` is created if not
provided.
#### Inherited from
```ts
QueryCoreClientConfig.mutationCache
```
***
### queryCache?
```ts
optional queryCache: QueryCache;
```
Defined in: [packages/query-core/src/types.ts:1497](https://github.com/TanStack/query/blob/main/packages/query-core/src/types.ts#L1497)
The query cache this client is connected to. A new `QueryCache` is created if not provided.
#### Inherited from
```ts
QueryCoreClientConfig.queryCache
```