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

Function isGetter

packages/vue-query/src/usePrefetchInfiniteQuery.ts:53–55  ·  view source on GitHub ↗

* Checks whether an option was passed as a getter function. * @param value - The option value. * @returns `true` if `value` is a function.

(value: MaybeRefOrGetter<T>)

Source from the content-addressed store, hash-verified

51 * @returns `true` if `value` is a function.
52 */
53function isGetter<T>(value: MaybeRefOrGetter<T>): value is () => T {
54 return typeof value === 'function'
55}
56
57/**
58 * `usePrefetchInfiniteQuery` does not return anything — it fires a prefetch as a reactive side effect, useful

Callers 1

usePrefetchInfiniteQueryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected