Skip to content
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

perf: Avoid re-rendering everything on select #58

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

surajshetty3416
Copy link
Member

Each "block select" was triggering re-renders in all blocks due to usage of computed value in one of the prop. This made selection noticeably slow in complex/big web pages.

It is instant now.

- refactor: Move canvas related functions from store to BlockCanvas component
@surajshetty3416 surajshetty3416 merged commit 2b323d2 into develop Jan 15, 2024
1 check passed
@surajshetty3416 surajshetty3416 deleted the optimize-rendering branch January 15, 2024 09:20
@surajshetty3416
Copy link
Member Author

🎉 This PR is included in version 1.3.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant