Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Type Alias Collector

    what a route's load calls to put records and projections into a page's data

    type Collector = {
        collect(version: number): Collected;
        projection(
            id: string,
            data: unknown,
            deps?: readonly string[],
        ): ProjectionRef;
        record(id: string, data: unknown): RecordRef;
        row(dataset: string, key: string): RowRef;
    }
    Index
    • the reference to a dataset row; nothing is registered, the device resolves it from its rows

      Parameters

      • dataset: string
      • key: string

      Returns RowRef