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

Function removeEntry

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

Source from the content-addressed store, hash-verified

5473 return entry
5474 }
5475 const removeEntry = (entry: Entry): void => {
5476 if (entry.removed) return
5477 entry.removed = true
5478 entry.offReactivity?.()
5479 dropFetch(entry)
5480 cancelIdle(entry)
5481 stopInterval(entry)
5482 const byKey = index.get(entry.def.name)
5483 if (byKey !== undefined && byKey.get(entry.argsKey) === entry) {
5484 byKey.delete(entry.argsKey)
5485 if (byKey.size === 0) index.delete(entry.def.name)
5486 }
5487 checkAwaits(entry)
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 &&

Callers 3

startIdleFunction · 0.70
sleepFunction · 0.70
afterQuietFunction · 0.70

Calls 6

dropFetchFunction · 0.85
cancelIdleFunction · 0.85
stopIntervalFunction · 0.85
checkAwaitsFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected