Repository navigation
Data: Declare the persist option on ReduxStoreConfig - #84676
manzoorwanijk wants to merge 3 commits into
Conversation
🤖 PR meta 🤖🎉 PropsIf 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. Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: 0 B Total Size: 8.64 MB
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. three users concurrently edit a large post with diverse blocks in
|
|
FYI, we want to deprecate this. I think the |
Oh, I didn't know that. Thanks |
What?
See #67691. Declares the persistence plugin's
persistoption onReduxStoreConfig.Why?
@wordpress/block-editorpassespersist: [ 'preferences' ]tocreateReduxStoreandregisterStore. Once itsstore/indexis TypeScript, that is an excess property error, and the conversion rules forbid suppressing it.How?
persist?: boolean | string[]toReduxStoreConfig:gutenberg/packages/data/src/types.ts
Lines 45 to 49 in bb4ef84
registerStoreoptions.No runtime changes. Only the persistence plugin reads the option.
Testing Instructions
npm run clean:package-types && npm run typecheckUse of AI Tools
Written with Claude Code, reviewed by Codex and by me.