Prometheus Entity Management API
    Preparing search index...
    • Create a Svelte 5 runes-compatible reactive store for a single entity.

      Designed to be called from a Svelte component's <script> block or from a .svelte.ts module. Returns a plain reactive object whose properties update whenever the underlying entity graph slice changes.

      
      
      {#if store.isLoading}
        
      {:else if store.entity}
        

      {store.entity.title}

      {/if}

      Type Parameters

      • TRaw
      • TEntity extends object

      Parameters

      • type: string

        Entity type key (e.g. "Invoice")

      • opts: CreateEntityStoreOptions<TRaw, TEntity> & { id: string | null | undefined }

        Query options including id, fetch, and normalize

      Returns EntityStore<TEntity>