Prometheus Entity Management API
    Preparing search index...

    Rune-reactive handle for a single entity. Every property is a Svelte 5 $state cell that updates whenever the underlying graph slice changes.

    interface EntityStore<T extends object> {
        destroy: () => void;
        entity: T | null;
        error: string | null;
        isLoading: boolean;
        isReady: boolean;
        refetch: () => void;
    }

    Type Parameters

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

    Release the graph subscription and subscriber ref-count token. Call this from the component's onDestroy (or $effect cleanup) to prevent memory leaks in long-lived SPA sessions.

    entity: T | null

    Merged canonical + patch view from the graph, or null before first load.

    error: string | null

    Error string from the last failed fetch, or null on success.

    isLoading: boolean

    true while the transport fetch is in flight.

    isReady: boolean

    True when the entity exists in the graph and is not being fetched.

    refetch: () => void

    Trigger a fresh fetch regardless of staleness. Useful for pull-to-refresh patterns or after an optimistic mutation.