Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@abelsj60
Copy link
Contributor

@abelsj60 abelsj60 commented Feb 1, 2023

This pull request helps make editor instances more portable.

If an editor instance is moved around the DOM via drag and drop, setState functions that are nested inside a Lexical listener can result in a noop warning. While Lexical lives on, the React components surrounding it will not.

This pull request adds isMounted to one spot to prevent this from happening.

A previous PR accidentally snuck the same code into ImageComponent, which also needed this fix.

…xical instance is made portable and its history state is saved to local react state
@vercel
Copy link

vercel bot commented Feb 1, 2023

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

Name Status Preview Comments Updated
lexical ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 1, 2023 at 6:13PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 1, 2023 at 6:13PM (UTC)

@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 Feb 1, 2023
@trueadm trueadm merged commit b70fe79 into facebook:main Feb 2, 2023
@trueadm trueadm mentioned this pull request Feb 3, 2023
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants