Skip to main content

QueriesObserverOptions

还没翻译译自英文(tanstack.com)本页 8 段都还没译

Defined in: packages/query-core/src/queriesObserver.ts:32

Options for a QueriesObserver that apply to all of its queries at once.

Type Parameters

TCombinedResult

TCombinedResult = QueryObserverResult[]

Properties

PropertyTypeDescription
combine?CombineFn<TCombinedResult>A function that combines the array of QueryObserverResults (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 QueryObserverResults unchanged.