Skip to content

[lexical-yjs] Fix: skip elements that were added and removed between snapshots#7922

Merged
etrepum merged 1 commit intofacebook:mainfrom
james-atticus:yjs-v2-dont-render-add-delete-elements
Oct 14, 2025
Merged

[lexical-yjs] Fix: skip elements that were added and removed between snapshots#7922
etrepum merged 1 commit intofacebook:mainfrom
james-atticus:yjs-v2-dont-render-add-delete-elements

Conversation

@james-atticus
Copy link
Copy Markdown
Contributor

Description

renderSnapshot was including elements that were added and removed between the two snapshots. These should be filtered out. This is the same logic as y-prosemirror.

Test plan

Unit test fails before the change, passes after.

@meta-cla meta-cla 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 Oct 14, 2025
@vercel
Copy link
Copy Markdown

vercel bot commented Oct 14, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Oct 14, 2025 4:26am
lexical-playground Ready Ready Preview Comment Oct 14, 2025 4:26am

@etrepum etrepum added this pull request to the merge queue Oct 14, 2025
Merged via the queue into facebook:main with commit db766e9 Oct 14, 2025
42 checks passed
This was referenced Oct 27, 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.

2 participants