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

QueriesObserverOptions.md

20 lines905 Bytes

1---
2id: QueriesObserverOptions
3title: QueriesObserverOptions
4---
5​
6Defined in: [packages/query-core/src/queriesObserver.ts:32](https://github.com/TanStack/query/blob/main/packages/query-core/src/queriesObserver.ts#L32)
7​
8Options for a `QueriesObserver` that apply to all of its queries at once.
9​
10## Type Parameters
11​
12### TCombinedResult
13​
14`TCombinedResult` = [`QueryObserverResult`](../type-aliases/QueryObserverResult.md)[]
15​
16## Properties
17​
18| Property | Type | Description |
19| ------ | ------ | ------ |
20| <a id="property-combine"></a> `combine?` | `CombineFn`\<`TCombinedResult`\> | A function that combines the array of `QueryObserverResult`s (one per observed query) into a single value. The combined value is memoized and only recomputed when one of the underlying results, the query hashes, or the `combine` function itself changes. Defaults to returning the array of `QueryObserverResult`s unchanged. |