streamline initialized

This commit is contained in:
peterkogo
2025-04-09 15:09:30 +02:00
parent 739d557010
commit 108f1ce81c
10 changed files with 18 additions and 408 deletions
@@ -1,6 +1,5 @@
<script lang="ts">
import { EdgeWrapper } from '$lib/components/EdgeWrapper';
import { CallOnMount } from '$lib/components/CallOnMount';
import { MarkerDefinition } from '$lib/container/EdgeRenderer/MarkerDefinition';
import type { EdgeEvents } from '$lib/types';
import type { SvelteFlowStore } from '$lib/store/types';
@@ -29,16 +28,4 @@
{onedgepointerleave}
/>
{/each}
{#if !store.edgesInitialized && store.visible.edges.size > 0}
<CallOnMount
onMount={() => {
store.edgesInitialized = true;
}}
onDestroy={() => {
// TODO: this needs to be handled differently
// store.edgesInitialized = false;
}}
/>
{/if}
</div>