repeat
Reactively renders a callback count times, reusing previously-rendered
entries when only the count changes. Underlying helper for <Repeat>.
options.from— start index (default0); useful for offset/windowed rendering.options.fallback— accessor returning a value to show when count is0.
Import
import { repeat } from "solid-js";Type signature
function repeat( count: Accessor<number>, map: (index: number) => any, options?: { from?: Accessor<number | undefined>; fallback?: Accessor<any>; name?: string; }): Accessor<any[]>;Examples
const view = repeat(count, (i) => `Item ${i}`, { fallback: () => "empty" });