MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / get

Method get

src/queryCore/core/queryCache.ts:144–153  ·  view source on GitHub ↗
(
    queryHash: string
  )

Source from the content-addressed store, hash-verified

142 }
143
144 get<
145 TQueryFnData = unknown,
146 TError = unknown,
147 TData = TQueryFnData,
148 TQueyKey extends QueryKey = QueryKey
149 >(
150 queryHash: string
151 ): Query<TQueryFnData, TError, TData, TQueyKey> | undefined {
152 return this.queriesMap[queryHash]
153 }
154
155 getAll(): Query[] {
156 return this.queries

Callers 7

buildMethod · 0.95
hydrateFunction · 0.80
broadcastQueryClientFunction · 0.80
getObserverTargetsFunction · 0.80
intersectionCallbackFunction · 0.80
getPostByIdFunction · 0.80
getPostsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected