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

Method loadMore

packages/effect/src/ui/Query.ts:1160–1172  ·  view source on GitHub ↗
(args: unknown)

Source from the content-addressed store, hash-verified

1158 return class extends QueryService {
1159 static readonly [InfiniteTypeId]: any = InfiniteTypeId
1160 static loadMore(args: unknown) {
1161 return withCache((cache, context) =>
1162 Effect.callback<any, any>((resume) => {
1163 const cancel = cache.loadMore(
1164 def,
1165 args,
1166 fetcherOf(context, QueryService),
1167 resume
1168 )
1169 return Effect.sync(cancel)
1170 })
1171 )
1172 }
1173 static reset(args: unknown) {
1174 return withCache((cache) => Effect.sync(() => cache.reset(def, args)))
1175 }

Callers

nothing calls this directly

Calls 4

withCacheFunction · 0.85
fetcherOfFunction · 0.85
loadMoreMethod · 0.65
syncMethod · 0.45

Tested by

no test coverage detected