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

Function listMoreOf

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

Source from the content-addressed store, hash-verified

4719}
4720
4721const listMoreOf = (entry: Entry): More<any> => {
4722 if (
4723 entry.target !== undefined && entry.target > listHeldPages(entry).length
4724 ) {
4725 return moreLoading
4726 }
4727 if (entry.moreError !== undefined) {
4728 return { _tag: "Failed", error: entry.moreError.error }
4729 }
4730 return listHasMoreOf(entry) ? moreAvailable : moreEnd
4731}
4732
4733const listLoadedMore = (entry: Entry): LoadedMore<any> => ({
4734 pages: listHeldPages(entry),

Callers

nothing calls this directly

Calls 2

listHeldPagesFunction · 0.85
listHasMoreOfFunction · 0.85

Tested by

no test coverage detected