MCPcopy Create free account
hub / github.com/TanStack/query / constructor

Method constructor

packages/query-core/src/queriesObserver.ts:82–96  ·  view source on GitHub ↗
(
    client: QueryClient,
    queries: Array<QueryObserverOptions<any, any, any, any, any>>,
    options?: QueriesObserverOptions<TCombinedResult>,
  )

Source from the content-addressed store, hash-verified

80 #observerMatches: Array<QueryObserverMatch> = []
81
82 constructor(
83 client: QueryClient,
84 queries: Array<QueryObserverOptions<any, any, any, any, any>>,
85 options?: QueriesObserverOptions<TCombinedResult>,
86 ) {
87 super()
88
89 this.#client = client
90 this.#options = options
91 this.#queries = []
92 this.#observers = []
93 this.#result = []
94
95 this.setQueries(queries)
96 }
97
98 protected override onSubscribe(): void {
99 if (this.listeners.size === 1) {

Callers

nothing calls this directly

Calls 1

setQueriesMethod · 0.95

Tested by

no test coverage detected