Skip to content

[lexical] Bug Fix: Implement missing deserialization for flat $config NodeState#7683

Merged
etrepum merged 3 commits intofacebook:mainfrom
etrepum:importJSON-flat-config
Jul 10, 2025
Merged

[lexical] Bug Fix: Implement missing deserialization for flat $config NodeState#7683
etrepum merged 3 commits intofacebook:mainfrom
etrepum:importJSON-flat-config

Conversation

@etrepum
Copy link
Copy Markdown
Collaborator

@etrepum etrepum commented Jul 10, 2025

Description

The initial implementation of $config flat NodeState configuration was missing import support for flat keys, this implements that support. Previously, if you configured a NodeState key as flat, it would not be deserialized by updateFromJSON. Per the documentation and expectations, it should automatically be deserialized.

Closes #7682

Test plan

New unit test coverage

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 10, 2025

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

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2025 7:23pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2025 7:23pm

@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 Jul 10, 2025
@etrepum etrepum added extended-tests Run extended e2e tests on a PR and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jul 10, 2025
@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 Jul 10, 2025
zurfyx
zurfyx previously approved these changes Jul 10, 2025
@etrepum etrepum added this pull request to the merge queue Jul 10, 2025
Merged via the queue into facebook:main with commit 20ad9f5 Jul 10, 2025
39 checks passed
@etrepum etrepum deleted the importJSON-flat-config branch July 10, 2025 19:47
@etrepum etrepum mentioned this pull request Jul 10, 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.

Bug: importJSON in new style $config node customization does not import the state

3 participants