wordpress-mobile / wordpress-mobile/WordPress-Android
Preview Out-Of-Date if Save is In Progress
Open
@mkevins is already working on this.
Since Mar 7, 2022.
[Pri] High
[Type] Bug
Posting/Editing
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Expected behavior
A post preview should always represent the current content in the editor.
Actual behavior
If an autosave is in progress when the user attempts to preview the post, the currently-being-saved changes will not be uploaded and included in the preview.
Steps to reproduce the behavior
- Open a very long post, ideally on a slow device (so it will be slow to save)
- Add some content,
- Wait at least 0.5 seconds (so the autosave delay has passed), but not much more than that (because we don't want the save to finish) and tap the "Preview" menu button.
- Observe that the post is not uploaded (assuming there was no other updated content saved apart from what was added just before the preview was opened) and the preview does not include the just-added content.

Tested on Pixel 1, Android 11, WPAndroid 125b3984af
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.