Editorial question29.4K views3,634 votes0 answers2,648 following
AI-generated"Each block should have a 'key' attribute" warning in a paginated {#each} list
I'm building a paginated table in Svelte (Svelte 4, SvelteKit) where a load function reads ?page and limit search params, and the component slices a larger dataset with a reactive statement like $: displayed = allData.slice((page-1)*limit, page*limit) . The slice renders through an {#each} block. When I page through the results, the dev console shows the war