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>
);
Creates a fine-grained SolidJS reactive primitive for an entity list.
graphStoreto mirror list state (ids + pagination) and resolves the entity rows by joining ids → graph entities on each read.queryKey()triggers a new fetch and subscribes to the new list slot; the previous subscription is cleaned up automatically.fetchNextPage) and imperative refetch.