react-archer icon indicating copy to clipboard operation
react-archer copied to clipboard

Add memoization to avoid rerenders when position is the same

Open logovaser opened this issue 1 year ago • 0 comments

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.

logovaser avatar May 19 '25 13:05 logovaser