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

Method prefetch

packages/effect/src/ui/Query.ts:597–603  ·  view source on GitHub ↗
(args: unknown)

Source from the content-addressed store, hash-verified

595 )
596 }
597 static prefetch(args: unknown) {
598 return withCache((cache, context) =>
599 Effect.sync(() => {
600 cache.prefetch(def, args, fetcherOf(context, Base))
601 })
602 )
603 }
604 static invalidate(args?: unknown) {
605 return withCache((cache, context) =>
606 Effect.sync(() => {

Callers

nothing calls this directly

Calls 4

withCacheFunction · 0.85
fetcherOfFunction · 0.85
prefetchMethod · 0.65
syncMethod · 0.45

Tested by

no test coverage detected