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

Function owesRefetch

packages/effect/src/ui/Query.ts:5490–5493  ·  view source on GitHub ↗
(entry: Entry)

Source from the content-addressed store, hash-verified

5488 }
5489 /** A refetch in flight, or one owed: held by a live patch, or owed after a list's append. */
5490 const owesRefetch = (entry: Entry): boolean =>
5491 !entry.removed &&
5492 (entry.fetch !== undefined || entry.deferred !== undefined ||
5493 entry.owed !== undefined)
5494 /** An entry that may have gone quiet leaves the awaited sets, and a set it empties is heard. */
5495 const checkAwaits = (entry: Entry): void => {
5496 if ((awaits.size === 0 && prefetchAwaits.size === 0) || owesRefetch(entry)) return

Callers 3

checkAwaitsFunction · 0.85
prefetchFunction · 0.85
beginRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected