-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor: Don't edit the post when autosaving. #17420
Conversation
@@ -390,6 +393,7 @@ export function* savePost( options = {} ) { | |||
previousRecord.type, | |||
previousRecord.id | |||
) ), | |||
...edits, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain this concatenation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still want autosaves to have the latest content. This makes sure of that without editing the entity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense, but there's still several concepts to track in just one action creator. We need tests for this sort of regression, could you work on it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, alright, let's not let #17434 stagnate, but I can approve this one in the meantime. :)
Description
This PR stops the editor from clearing redo levels when autosaving.
How has this been tested?
It was verified that autosaves no longer clear the redo stack.
Types of Changes
Bug Fix: Stop autosaves from clearing the redo stack.
Checklist: