(entry: Entry)
| 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, |
no test coverage detected