Make handleId and isTarget reactive.

This commit is contained in:
Daniel Darabos
2024-04-29 19:43:35 +02:00
committed by GitHub
parent c318288703
commit eb229d820b

View File

@@ -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 {