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

Function cacheEnv

packages/effect/src/ui/Query.ts:5834–5865  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5832
5833 let envCache: CacheEnv | undefined
5834 const cacheEnv = (): CacheEnv =>
5835 envCache ??= {
5836 settleOnce,
5837 fetches,
5838 offServer,
5839 isDisposed: () => disposed,
5840 now,
5841 report,
5842 register,
5843 lookup,
5844 ensureEntry,
5845 buildOf,
5846 survivingBuild,
5847 logKeyOf,
5848 isStale,
5849 hasLive,
5850 inWindow,
5851 cancelIdle,
5852 emit,
5853 emitFetch,
5854 startFetch,
5855 ensureFetch,
5856 store,
5857 save,
5858 storeFailure,
5859 markDefect,
5860 afterFetch,
5861 afterQuiet,
5862 resumeAll,
5863 invalidateEntry,
5864 fetchEnded: () => notify(fetchEndListeners, undefined)
5865 }
5866
5867 // -- fetching ---------------------------------------------------------------
5868 const startFetch = (

Callers 8

startFetchFunction · 0.85
onFetchExitFunction · 0.85
runSharedFunction · 0.85
getFunction · 0.85
loadMoreFunction · 0.85
resetFunction · 0.85
settleRunEntryFunction · 0.85
closeWindowFunction · 0.85

Calls 1

notifyFunction · 0.70

Tested by

no test coverage detected