-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagram becomes unresponsive with large data #35
Comments
Hey @dhruv29011991 ! Could you share an URL with a minimal example on CodeSandbox or a minimal GitHub repository where the issue happens? |
Hello @tisoap, thanks for responding, I have added the URL below for the example please have a look and let know if you require any more information from my end. |
Facing this issue as well, the performance drop is pretty significant with as few as 25 nodes. I'm using a gridRatio of 9, any higher than that, and the paths lose their smoothness. I believe the issue is occurring because the react-flow hook |
On previous versions of For anyone facing this issue in the meantime, I recommend debouncing your custom edge implementation before calling |
So I've memoized the
Although @tisoap the performance is still not that great and I can notice a lot of stuttering when dragging nodes in a graph of 25-30 nodes. The |
@agrawal-rohit would you mind sharing your code/instructions for how you memoized |
@AlecSchneider I didn't memoize |
Diagram freezes when using latest version i.e. 2.0.0 with large data of nodes and edges
The text was updated successfully, but these errors were encountered: