Prometheus Entity Management API
    Preparing search index...

    Interface FragmentRenderContext<T>

    Context passed to each fragment renderer. Renderers receive the resolved entity data (merged entities + patches) and the IR metadata so they can build type-safe HTML without querying the graph again.

    interface FragmentRenderContext<
        T extends Record<string, unknown> = Record<string, unknown>,
    > {
        entity: T;
        entityId: string;
        entityType: string;
        ir: IrEntity;
        isRealtime: boolean;
    }

    Type Parameters

    • T extends Record<string, unknown> = Record<string, unknown>
    Index
    entity: T

    Resolved entity data — canonical entity merged with any local patches.

    entityId: string
    entityType: string

    IR metadata for this entity type (fields, relations, primaryKey).

    isRealtime: boolean

    Whether this render is triggered by a realtime change vs. initial fetch.