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

Function onPage

packages/effect/src/ui/Query.ts:4885–4897  ·  view source on GitHub ↗
(index: number, cursor: Schema.Json | undefined)

Source from the content-addressed store, hash-verified

4883 entry.moreError = undefined
4884 const logKey = () => env.logKeyOf(entry)
4885 const onPage = (index: number, cursor: Schema.Json | undefined): void => {
4886 if (entry.fetch === fetch) {
4887 env.emitFetch(
4888 entry,
4889 trigger,
4890 false,
4891 true,
4892 { page: index, cursor },
4893 fetch.parent,
4894 fetch.watcher
4895 )
4896 }
4897 }
4898 if (append) {
4899 const base = listHeldPages(entry)
4900 let cursor: Schema.Json | undefined

Callers 1

stepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected