Description
Content doesn't update when previewing a draft when that draft was previously public.
Step-by-step reproduction instructions
Open the edit page for a brand new post
Add "Title" as title and hit "Publish"
Hit preview in a new tab
Notice the preview works great
Update the title to "Autosaved Title" and preview
Notice preview still works great
Reload the page (without explicitly saving)
Notice the title is correctly "Title"
Hit preview in a new tab
Notice the title is incorrectly "Autosaved Title"
Expected behaviour
The Title in the preview to be the current title in the editor
Actual behaviour
The Title in the preview is wrong, an older autosaved title
SS.2021-07-29.at.16.35.09.mp4
WordPress information
WordPress version: 5.8
Gutenberg version: Whatever ships with WP 5.8
Are all plugins except Gutenberg deactivated? Yes
Are you using a default theme (e.g. Twenty Twenty-One)? Yes
Device information
Device: Desktop
Operating system: macOs 11.4
Browser: Chrome 91.0.4472.164
Description
Content doesn't update when previewing a draft when that draft was previously public.
Step-by-step reproduction instructions
Expected behaviour
The Title in the preview to be the current title in the editor
Actual behaviour
The Title in the preview is wrong, an older autosaved title
SS.2021-07-29.at.16.35.09.mp4
WordPress information
Device information