Site Editor: Unexpected "undo" behavior in StrictMode #63167
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Type] Bug
An existing feature does not function as intended
I noticed unexpected behavior when undoing changes in the Site Editor and React StrictMode is enabled.
After undoing the recently made changes, there are extra history records, and the template part content is gone after the changes are entirely undone. The issue affects unmodified template parts with the Navigation block.
Note
The bug doesn't affect WP 6.6 or production websites running the Gutenberg plugin.
Testing Instructions
SCRIPT_DEBUG
so React code runs in aStrictMode
.Screencast
CleanShot.2024-07-05.at.10.18.37.mp4
CleanShot.2024-07-05.at.10.20.11.mp4
The text was updated successfully, but these errors were encountered: