<script>
const refs = [1,2,3]
</script>
{#each refs as ref}
<div bind:this={ref}/>
{/each}
ERROR: each_value is not defined
https://svelte.dev/repl/2d4004d1ee40459a9022c97204529bb6?version=3.19.2
in fact neither each_value or ref_index are defined in the compiled code
function instance($$self, $$props, $$invalidate) {
const refs = [1, 2, 3];
function div_binding($$value, ref) {
if (each_value[ref_index] === $$value) return;
binding_callbacks[$$value ? "unshift" : "push"](() => {
each_value[ref_index] = $$value;
});
}
return [refs, div_binding];
}
ERROR: each_value is not definedhttps://svelte.dev/repl/2d4004d1ee40459a9022c97204529bb6?version=3.19.2
in fact neither
each_valueorref_indexare defined in the compiled code