Open
Description
Not sure if this is an expected limitation or a bug, or perhaps specific to my project, but I get an infinite loop that locks up the app when I place <IntersectionObserver>
into an #each
block:
<script>
import IntersectionObserver from 'svelte-intersection-observer';
import Some from '$components/some.svelte';
const sections = [
{
id: 'some',
node: undefined,
intersecting: undefined,
component: Some,
},
];
</script>
{#each sections as {id, node, intersecting, component}}
<IntersectionObserver element={node} bind:intersecting>
<section
id={id}
class:intersecting={intersecting}
bind:this={node}
>
<svelte:component this={component} />
</section>
</IntersectionObserver>
{/each}
Related: #63
Metadata
Metadata
Assignees
Labels
No labels