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

[lexical] Bug Fix: Fix registerNodeTransform regression introduced in #6894 #7016

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

etrepum
Copy link
Collaborator

@etrepum etrepum commented Jan 3, 2025

Description

The registerNodeTransform changes in #6894 have a subtle bug when there's a pending node map change with removed nodes that have been GC'd

Closes #7014

Test plan

Before

Exception under certain conditions

After

Unit test to simulate error conditions, no more exception.

Copy link

vercel bot commented Jan 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2025 4:50pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2025 4:50pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 3, 2025
Copy link

github-actions bot commented Jan 3, 2025

size-limit report 📦

Path Size
lexical - cjs 31.44 KB (0%)
lexical - esm 31.19 KB (0%)
@lexical/rich-text - cjs 40.51 KB (0%)
@lexical/rich-text - esm 33.15 KB (0%)
@lexical/plain-text - cjs 39.07 KB (0%)
@lexical/plain-text - esm 30.33 KB (0%)
@lexical/react - cjs 42.26 KB (0%)
@lexical/react - esm 34.44 KB (0%)

@ivailop7 ivailop7 added the extended-tests Run extended e2e tests on a PR label Jan 3, 2025
@etrepum etrepum added this pull request to the merge queue Jan 3, 2025
Merged via the queue into facebook:main with commit bd1ef2a Jan 3, 2025
68 of 70 checks passed
@etrepum etrepum mentioned this pull request Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: registerCodeHighlighting throws when creating a code node within the initial editor state since v0.22.0
3 participants