Remote / foldkit-remote/maintained

JoinedRows

interface · packages/remote/src/maintained/join.ts:23

interface JoinedRows<Row> {
  readonly targetCount: number
  readonly forTarget: (targetId: string) => ReadonlyArray<Row>
}

Live reverse-indexed view of grouped rows: forTarget reads the maintained ReverseIndex for the latest Maintained.value read, so callers should not retain old JoinedRows references as historical point-in-time snapshots.

Members

JoinedRows.targetCount

property · packages/remote/src/maintained/join.ts:25

readonly targetCount: number

Number of distinct target ids that currently have at least one pointing row.

JoinedRows.forTarget

property · packages/remote/src/maintained/join.ts:27

readonly forTarget: (targetId: string) => ReadonlyArray<Row>

All rows currently pointing at targetId.