Prometheus Entity Management API
    Preparing search index...

    Rune-reactive handle for a list query. items is joined from the graph on every render so cross-view reactivity works: updating entities[type][id] in any store immediately reflects here without re-fetching.

    interface EntityList<T extends object> {
        destroy: () => void;
        error: string | null;
        hasNextPage: boolean;
        isLoading: boolean;
        isLoadingMore: boolean;
        items: T[];
        loadMore: () => void;
        refetch: () => void;
        total: number | null;
    }

    Type Parameters

    • T extends object
    Index
    destroy: () => void

    Release the graph subscription. Call from onDestroy or $effect cleanup.

    error: string | null

    Error string from the last failed list fetch.

    hasNextPage: boolean

    Whether there are more pages available.

    isLoading: boolean

    true on the first fetch or when a full reload is pending.

    isLoadingMore: boolean

    true while a "load more" page fetch is in progress.

    items: T[]

    Resolved entity rows (canonical + patches). Excludes ids not yet in the graph.

    loadMore: () => void

    Fetch the next page (append mode). No-op if hasNextPage is false or a fetch is already in progress.

    refetch: () => void

    Trigger a full refetch from the first page. Resets ids and fetches with the original ListQueryOptions.

    total: number | null

    Total row count from the server (if the transport provides it).