Accordion block: Lock core/accordion iAPI store#72977
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +8 B (0%) Total Size: 2.45 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in b378883. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19075753791
|
Co-authored-by: DAreRodz <darerodz@git.wordpress.org> Co-authored-by: luisherranz <luisherranz@git.wordpress.org>
|
I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: 198ba47 |
What?
Locks the
core/accordioninteractivity store used by the Accordion block.Why?
To avoid exposing internal data that shouldn't become a public API.
How?
Simply by adding a
{ lock: true }option to the store definition.Testing Instructions
store()from the Interactivity API module.core/accordionstore. It should throw an error.