You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Enabled SCRIPT_DEBUG so React code runs in a StrictMode.
Using TT4.
Ensure that the Header template part and template used for testing have no changes. They're loaded from a file.
Open a template like "Page: 404".
Make changes to the content or template part.
Undo the changes.
Notice that there are more "undo" steps than actual changes.
Fully undoing clears out the header template part.
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: