MCPcopy Create free account
hub / github.com/Effect-TS/effect / fetcherOf

Function fetcherOf

packages/effect/src/ui/Query.ts:726–729  ·  view source on GitHub ↗
(
  context: Context.Context<never>,
  service: Context.Key<any, Fetcher>
)

Source from the content-addressed store, hash-verified

724 )
725
726const fetcherOf = (
727 context: Context.Context<never>,
728 service: Context.Key<any, Fetcher>
729): Fetcher => Context.getUnsafe(context, service)
730
731/**
732 * Identifies an infinite query: a class made by `InfiniteService`.

Callers 4

getMethod · 0.85
prefetchMethod · 0.85
changesMethod · 0.85
loadMoreMethod · 0.85

Calls 1

getUnsafeMethod · 0.45

Tested by

no test coverage detected