Prometheus Entity Management API
    Preparing search index...
    • Creates a fine-grained SolidJS reactive primitive for an entity list.

      • Subscribes to graphStore to mirror list state (ids + pagination) and resolves the entity rows by joining ids → graph entities on each read.
      • Changing queryKey() triggers a new fetch and subscribes to the new list slot; the previous subscription is cleaned up automatically.
      • Supports pagination (fetchNextPage) and imperative refetch.

      Type Parameters

      • TRaw
      • TEntity extends object

      Returns CreateEntityListReturn<TEntity>

      const invoices = createEntityList({
      type: "Invoice",
      queryKey: () => ["invoices", { status: filter() }],
      fetch: (params) => api.getInvoices(params),
      normalize: (raw) => ({ id: raw.invoice_id, data: { ...raw } }),
      });

      return (
      <For each={invoices.items()}>
      {(invoice) => <InvoiceRow invoice={invoice} />}
      </For>
      );