react-archer
react-archer copied to clipboard
Add memoization to avoid rerenders when position is the same
AdaptedArrow component takes a while to render even though it's only noticeable when there are many connections visible. There's no need to render them again if the position is stale.
I made this simple solution for my project and it does the job. You may come up with the better one, but I'd highly appreciate this change to be included. Sorry, I wasn't able to run/compile your project correctly due to lack of time, so just posting this concept.
Thanks for your work.