Persistence data plugin should take into account the object shape #9994
Labels
[Package] Data
/packages/data
[Type] Bug
An existing feature does not function as intended
[Type] Regression
Related to a regression in the latest release
The persistence data plugin helps to persist parts of the state in between sessions. When the data persisted is an object (e.g. the
preferences
key in the editor, nux, or edit-post stores) new keys added to that object will be invalidated once the persistence mechanism retrieves old data from cache.How to test
master
branch, and run Gutenberg.preferences
object whose value istrue
by default.Expected result is that the
preferences
object will have the new truthy value but instead it has the state retrieved from local storage (which doesn't have the new added key).The text was updated successfully, but these errors were encountered: