Open Mamaduka opened 2 months ago
I noticed similar behavior with the File block in the post editor, which updates attributes on the mount.
SCRIPT_DEBUG
so React code runs in a StrictMode
.https://github.com/user-attachments/assets/f6e2c1a8-5d7e-4b9e-8db4-06cf58a58f3b
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.
Testing Instructions
SCRIPT_DEBUG
so React code runs in aStrictMode
.Screencast
https://github.com/WordPress/gutenberg/assets/240569/3684a74c-9f79-4af8-b9eb-f770dede21dc
https://github.com/WordPress/gutenberg/assets/240569/fa50dc77-b086-4984-ab9f-360cc2d49acb