Merge pull request #3914 from xyflow/handle-connections-svelte
aligned useHandleConnections in svelte with react version
This commit is contained in:
@@ -37,8 +37,9 @@ export function useHandleConnections({
|
||||
onDisconnect,
|
||||
}: useHandleConnectionsParams): HandleConnection[] {
|
||||
const _nodeId = useNodeId();
|
||||
const currentNodeId = nodeId ?? _nodeId;
|
||||
|
||||
const prevConnections = useRef<Map<string, HandleConnection> | null>(null);
|
||||
const currentNodeId = nodeId || _nodeId;
|
||||
|
||||
const connections = useStore(
|
||||
(state) => state.connectionLookup.get(`${currentNodeId}-${type}-${id}`),
|
||||
|
||||
Reference in New Issue
Block a user