-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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-react] remove editor__DEPRECATED that has been deprecated for two years #6494
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
@@ -23,7 +23,6 @@ export type InitialEditorStateType = | |||
| ((editor: LexicalEditor) => void); | |||
|
|||
export type InitialConfigType = $ReadOnly<{ | |||
editor__DEPRECATED?: LexicalEditor | null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
editor__DEPRECATED is used some places on www,
https://www.internalfb.com/code/search?q=repo%3Awww%20editor__DEPRECATED
im not sure how backwards compatible this would be
@zurfyx should we try cleaning up editor__DEPRECATED in www first before syncing this over?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@potatowagon Good point, we need to fix these occurrences first. I'll connect with you offline but unfortunately we should put this PR on hold for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've converted to draft since we don't have a label for "on hold" or "don't merge"
I just recalled Chriss @montlebalm was mentioning use case with reusing editor instance via this prop: #4986 Wonder if it's used by other folks too and (although it was marked as deprecated forever) it worth having explicit exception when it's passed |
@fantactuka FWIW we're also using the same workaround described in the issue internally and that's not going away anytime soon |
@fantactuka I can't think of a good reason to render a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can merge now! Thank you
Description
The
editor__DEPRECATED
prop has been deprecated for two years (#1407), this PR removes it.Test plan
There were no tests for this feature, and its absence does not need new tests.