Block Editor: BlockList: Rename BlockContext as BlockListContext #21664
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Package] Block editor
/packages/block-editor
[Status] In Progress
Tracking issues with work in progress
[Type] Code Quality
Issues or PRs that relate to code quality
Previously: #21467 (#21467 (comment))
As of #21467, there are now three React Context objects related to blocks:
BlockContext
inblock-editor/src/components/block-list/block.js
BlockEditContext
inblock-editor/src/components/block-edit/context.js
BlockContext
inblock-editor/src/components/block/context/index.js
For fear of potential confusion, these should each have distinct names. Currently, there is conflict between the two "BlockContext" objects. The latter of these is responsible for managing the feature of the same name ("Block Context", implemented in #21467). The former is specific to the context of a block within the block list. As such, it is more easily renamed.
Task:
Rename
BlockContext
inblock-list/block.js
toBlockListContext
orBlockListBlockContext
.The text was updated successfully, but these errors were encountered: