useQueryCollection function

Module @runic-artifex/svelte in @runic-artifex/svelte 0.23.0

function useQueryCollection<TRow>(collection: () => QueryCollection<TRow> | undefined, options: () => QueryViewportOptions): QueryCollectionHandle<TRow>;

Follows a scroll container for a query collection (client.queries.{name}): it loads the rows the container shows from .NET, with placeholders until they arrive, and lays them out with variable heights. Call it during component initialization with getters, such as useQueryCollection(() => view.client?.queries.rows, () => ({ estimateSize: 32 })).