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

Method constructor

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

68 #observerMatches: Array<QueryObserverMatch> = []
69
70 constructor(
71 client: QueryClient,
72 queries: Array<QueryObserverOptions<any, any, any, any, any>>,
73 options?: QueriesObserverOptions<TCombinedResult>,
74 ) {
75 super()
76
77 this.#client = client
78 this.#options = options
79 this.#queries = []
80 this.#observers = []
81 this.#result = []
82
83 this.setQueries(queries)
84 }
85
86 protected onSubscribe(): void {
87 if (this.listeners.size === 1) {

Callers

nothing calls this directly

Calls 1

setQueriesMethod · 0.95

Tested by

no test coverage detected