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

Method constructor

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

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

Callers

nothing calls this directly

Calls 1

setQueriesMethod · 0.95

Tested by

no test coverage detected