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

Method constructor

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

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

Callers

nothing calls this directly

Calls 1

setQueriesMethod · 0.95

Tested by

no test coverage detected