Remote / foldkit-remote

ConnectionRoot

interface · packages/remote/src/retain.ts:16

interface ConnectionRoot {
  readonly identity: string
  readonly select?: RelationRequirement | undefined
  readonly ages?: boolean | undefined
  readonly persist?: Persist | undefined
}

A connection to keep: its identity, and what a page of it selects of each item, if a projection reads it.

Members

ConnectionRoot.identity

property · packages/remote/src/retain.ts:17

readonly identity: string

ConnectionRoot.select

property · packages/remote/src/retain.ts:18

readonly select?: RelationRequirement | undefined

ConnectionRoot.ages

property · packages/remote/src/retain.ts:24

readonly ages?: boolean | undefined

Every call reading it ages it (staleWhileRevalidate), so once left it is held as it is and its age says when it is due. Otherwise a list left is held stale, and going back refetches it.

ConnectionRoot.persist

property · packages/remote/src/retain.ts:26

readonly persist?: Persist | undefined

What the calls reading it say of saving it (persist); none when no call says.