Eliav2 / react-xarrows

Draw arrows (or lines) between components in React!
https://codesandbox.io/embed/github/Eliav2/react-xarrows/tree/master/examples?fontsize=14&hidenavigation=1&theme=dark
MIT License
584 stars 75 forks source link

Showing transform and d attribute in <g and path showing NAN issue in starting #192

Open saurabhcoded opened 9 months ago

saurabhcoded commented 9 months ago

Describe the bug & Expected behavior A clear and concise description of what the bug is. -> While using react 18, react xarrows are being loaded dynamically based on connection, then it shows not a number issue. -> required to add a default number value for these fields may be 0 or something

To Reproduce Steps to reproduce the bug: what props where used, in what way the lib was used?
provide preferably minimal code snippets/codesandbox/gitpod.

-> Using React 18, and while rendering these arrows with dynamic id variables it causes this issue to pop

Screenshots If applicable, add screenshots to help explain your problem. image