Skip to content

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

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

etrepum merged 1 commit into
meta: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

vercel Bot commented Oct 14, 2025 •

Copy link
Copy Markdown

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 meta:main with commit db766e9 Oct 14, 2025
This was referenced Oct 27, 2025

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 56f3c94b Deployed Oct 14, 2025 by vercel[bot]
Preview – lexical — 56f3c94b Deployed Oct 14, 2025 by vercel[bot]
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