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

Function view

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

Source from the content-addressed store, hash-verified

5561 const inWindow = (entry: Entry): boolean => windowOpen && entry.hydrated
5562 /** The server value, waiting during a fetch or stream reconnection but not a list append. */
5563 const view = (entry: Entry): AsyncResult.AsyncResult<any, any> => {
5564 const waiting = entry.fetch !== undefined
5565 ? !entry.fetch.append
5566 : entry.live?.reconnecting === true
5567 return entry.result === undefined
5568 ? AsyncResult.initial(waiting)
5569 : withWaiting(entry.result, waiting)
5570 }
5571 /** The server value with every patch applied in issue order. A patch that throws is dropped from the entry. */
5572 const patchedViewOf = (
5573 entry: Entry,

Callers 5

emitFunction · 0.70
watchFunction · 0.70
peekFunction · 0.70
buildCacheFunction · 0.70
finishFunction · 0.70

Calls 2

withWaitingFunction · 0.85
initialMethod · 0.80

Tested by

no test coverage detected