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

QueriesObserverOptions.md

22 lines978 Bytes

1---
2id: QueriesObserverOptions
3title: QueriesObserverOptions
4---
5​
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7​
8Defined in: [packages/query-core/src/queriesObserver.ts:32](https://github.com/TanStack/query/blob/main/packages/query-core/src/queriesObserver.ts#L32)
9​
10Options for a `QueriesObserver` that apply to all of its queries at once.
11​
12## Type Parameters
13​
14### TCombinedResult
15​
16`TCombinedResult` = [`QueryObserverResult`](../type-aliases/QueryObserverResult.md)[]
17​
18## Properties
19​
20| Property | Type | Description |
21| ------ | ------ | ------ |
22| <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. |