Merge pull request #4224 from darabos/patch-2

[SvelteFlow] Make handleId and isTarget reactive
This commit is contained in:
Moritz Klack
2024-05-02 11:25:49 +02:00
committed by GitHub
@@ -31,12 +31,12 @@
let className: $$Props['class'] = undefined;
export { className as class };
const isTarget = type === 'target';
$: isTarget = type === 'target';
const nodeId = getContext<string>('svelteflow__node_id');
const connectable = getContext<Writable<boolean>>('svelteflow__node_connectable');
$: isConnectable = isConnectable !== undefined ? isConnectable : $connectable;
const handleId = id || null;
$: handleId = id || null;
const store = useStore();
const {