{#each virtualItems as row (row.index)} {@const item = resultingItems[row.index]} {#if item} onListItemSelected?.(item.value)} /> {/if} {/each}