State: Autosave should be treated as regular save for same-user draft post #7124
Labels
Framework
Issues related to broader framework topics, especially as it relates to javascript
REST API Interaction
Related to REST API
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Milestone
Related: #7122 (comment)
When an autosave occurs for an auto-draft or draft post authored by the same user, the server treats it as a regular save:
gutenberg/lib/class-wp-rest-autosaves-controller.php
Lines 182 to 185 in 7141ce6
This should also be respected in the client, meaning:
state.currentPost
, should reflect anything included in the autosave requestA couple possible implementations may include:
isAutosave
asfalse
when the autosave is draft for current usercurrentPost
reducerresetPost
after autosave completes successfully, when autosave is draft for current userThe text was updated successfully, but these errors were encountered: