MCPcopy
hub / github.com/TanStack/query / constructor

Method constructor

packages/query-core/src/queriesObserver.ts:48–62  ·  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

46 #observerMatches: Array<QueryObserverMatch> = []
47
48 constructor(
49 client: QueryClient,
50 queries: Array<QueryObserverOptions<any, any, any, any, any>>,
51 options?: QueriesObserverOptions<TCombinedResult>,
52 ) {
53 super()
54
55 this.#client = client
56 this.#options = options
57 this.#queries = []
58 this.#observers = []
59 this.#result = []
60
61 this.setQueries(queries)
62 }
63
64 protected onSubscribe(): void {
65 if (this.listeners.size === 1) {

Callers

nothing calls this directly

Calls 1

setQueriesMethod · 0.95

Tested by

no test coverage detected