Block Editor: Improve sharing setting for features between the client and server #22658
Labels
[Package] Block editor
/packages/block-editor
[Type] Code Quality
Issues or PRs that relate to code quality
Description
Proposed in #22291 (review) by @nosolosw:
There is some duplications between:
https://github.com/WordPress/gutenberg/blob/c31475afc9fc149262da67c7464d5f4a527eb93a/lib/experimental-default-theme.json
and
https://github.com/WordPress/gutenberg/blob/c31475afc9fc149262da67c7464d5f4a527eb93a/packages/block-editor/src/store/defaults.js
The concerning part is how we source default values in the block editor on the client. We literally duplicate the same settings that exist on the server. It's hard to tell if they are still in sync.
If we decide to use JSON format for the default global settings on the server, we could as well find a way to source them from the same file.
The text was updated successfully, but these errors were encountered: