Moritz Klack

Results 475 comments of Moritz Klack
trafficstars

React Flow doesn't support self connecting edges. If you need it, you need to implement a custom edge. Example: https://codesandbox.io/s/self-connecting-node-2nbh7v?file=/src/CustomEdge.tsx

This is possible and we have an example :) https://reactflow.dev/docs/examples/nodes/easy-connect/

Which positions are you passing to the Handle components?

oh nooo :D the minimap. I will check that! Thanks for the report @cedeber

this issue uses a very old version of React Flow. We are destructing all passed props to the outer div, so you can pass event listeners like `onMouseDown` etc.

Yep, unfortunately this doesn't work. For the explained case it works better, but it introduces a new bug :/ I would love to use a third party lib for this,...

Since v11.6.0 you can pass a global `isValidConnection` prop to the ReactFlow component. That one is also called when updating an edge.

If you are doing an animation that changes the scale, you need to update the node internals via ]`useUpdateNodeInternals`|(https://reactflow.dev/docs/api/hooks/use-update-node-internals/) to let React Flow re-measure the handle positions.