Skip to content

[lexical-extension][lexical-html][lexical-utils][lexical] Chore: Migrate away from legacy flow syntax#8547

Merged
etrepum merged 1 commit into
facebook:mainfrom
SamChou19815:new-syntax
May 23, 2026
Merged

[lexical-extension][lexical-html][lexical-utils][lexical] Chore: Migrate away from legacy flow syntax#8547
etrepum merged 1 commit into
facebook:mainfrom
SamChou19815:new-syntax

Conversation

@SamChou19815
Copy link
Copy Markdown
Contributor

Description

Migrate away from legacy flow syntax

Test plan

flow in CI

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment May 22, 2026 9:46pm
lexical-playground Ready Ready Preview, Comment May 22, 2026 9:46pm

Request Review

@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 May 22, 2026
@etrepum etrepum added this pull request to the merge queue May 23, 2026
Merged via the queue into facebook:main with commit 8d83f6d May 23, 2026
42 checks passed
mayrang added a commit to mayrang/lexical that referenced this pull request May 23, 2026
… merge dropped

The merge resolution that resolved conflicts via `git checkout --ours`
inadvertently reverted main changes that the same files needed.

- `LexicalReconciler.ts`: `$reconcileElementTerminatingLineBreak` now
  reads `prevLineBreak` from `slot.element.__lexicalLastChildKind` (cache)
  instead of calling `isLastChildLineBreakOrDecorator(prevElement, ...)`
  on a detached prev-state node — restores the facebook#8548 crash fix.
- `LexicalDOMSlot.ts`: `setManagedLineBreak` writes the cache field that
  the reconciler reads — without this the field declaration was orphan.
- `Lexical.js.flow`: migrates remaining `+T` / `+property` to the new
  `out T` / `readonly` syntax to match facebook#8547's flow migration on main.
@etrepum etrepum mentioned this pull request May 28, 2026
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.

2 participants