WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.5k stars 4.2k forks source link

Autosaving somehow triggers a full save when metaboxes exist, causing too many revisions #7135

Closed danielbachhuber closed 6 years ago

danielbachhuber commented 6 years ago

When there are one or more metaboxes on the page, the autosave process somehow triggers a full save, which then causes the creation of a ton of revisions.

See this GIF:

toomanyautosaves

Notably, see the "Autosaving..." animation, quickly followed by "Saving...". At the end of the experience, 4 revisions have been created (the UI for which is only present after you refresh the page):

image

Previously https://github.com/WordPress/gutenberg/issues/3656#issuecomment-394531874

cc @adamsilverstein @aduth

adamsilverstein commented 6 years ago

Thanks for opening this issue, I’m out this week. I’ll take a look soon if nobody beats me to it.