From e33b40b3c7f4f3a4b9251d1491de5d45c026c786 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Tue, 5 Aug 2025 21:21:18 -0400 Subject: [PATCH] limit number of connections to 1 --- src/IntegratorNode.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/IntegratorNode.jsx b/src/IntegratorNode.jsx index 4c10ff3c..f8d810a1 100644 --- a/src/IntegratorNode.jsx +++ b/src/IntegratorNode.jsx @@ -1,7 +1,11 @@ -import React from 'react'; -import { Handle } from '@xyflow/react'; +import { Handle, useNodeConnections } from '@xyflow/react'; + export default function IntegratorNode({ data }) { + const connections = useNodeConnections({ + handleType: "target", + }); + return (
{data.label}
- +
);