Data: Use consistent, accurate naming for store keys #14150
Labels
[Package] Data
/packages/data
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Previously:
There are currently at least four naming conventions to refer to the namespace assigned to a registered store.
gutenberg/packages/data/src/registry.js
Line 146 in ede3258
gutenberg/packages/editor/src/store/index.js
Line 18 in ede3258
gutenberg/packages/editor/src/store/controls.js
Line 15 in ede3258
We should seek to consolidate this to a single, consistent naming convention. While reducer key was the original naming, it is no longer strictly accurate since a store no longer needs to be implemented as Redux-based (see #10289).
My recommendation would be
storeName
, merely for alignment with the similarly-structuredblockName
naming.The text was updated successfully, but these errors were encountered: