feat(hooks): add useConnection

This commit is contained in:
moklick
2023-09-27 16:10:16 +02:00
parent 79ab4cb3e0
commit 8a1a26385a
3 changed files with 13 additions and 2 deletions
@@ -1,7 +1,7 @@
<script lang="ts">
import { useStore } from '@xyflow/svelte';
import { useConnection } from '@xyflow/svelte';
const { connection } = useStore();
const connection = useConnection();
</script>
{#if $connection.path}