#Edges not being created despite IDs being correct as well as being added in <ReactFlow>
1 messages · Page 1 of 1 (latest)
Check the Custom Nodes example as a reference.
The selector node has two source handles (a and b) so the edges are defined as
{
id: 'e2a-3',
source: '2',
target: '3',
sourceHandle: 'a', // <--- this edge uses handle `a`
animated: true,
style: { stroke: '#fff' },
},
{
id: 'e2b-4',
source: '2',
target: '4',
sourceHandle: 'b', // <--- this edge uses handle `b`
animated: true,
style: { stroke: '#fff' },
},