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

Class List

packages/effect/test/ui/Story.test.ts:1413–1420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1411
1412 it.effect("loads an infinite query as the runtime walks it", () => {
1413 class List extends Query.InfiniteService<List>()("check/List", {
1414 page: Schema.Literal(1),
1415 items: (page) => [page],
1416 key: String,
1417 cursor: Schema.Number,
1418 next: (_, pages) => Option.some(pages.length),
1419 staleTime: "1 minute"
1420 }) {}
1421 class Touch extends Command.Service<Touch>()("check/Touch", {
1422 invalidates: () => [List]
1423 }) {}

Callers 3

Runtime.test.tsFile · 0.70
makePageFunction · 0.70
HtmlServer.test.tsFile · 0.50

Calls 1

someMethod · 0.80

Tested by 1

makePageFunction · 0.56