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

fix: optimize block variables and lexical state updates #3689

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

Pavel910
Copy link
Collaborator

Changes

This PR fixes an issue in Lexical state updates, when many instances of the editor are present in the view at the same time.
I also optimized handling of block variables overall, by adding better memoization to reduce callback recreation on variable value updates.

How Has This Been Tested?

Manually, in a page with content rich blocks, with many instances of Lexical.

@Pavel910 Pavel910 merged commit 1f3e8a1 into next Nov 10, 2023
62 of 63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant