joplin icon indicating copy to clipboard operation
joplin copied to clipboard

Mobile (testing environment): Last editor input is lost if changes are made less than about 100ms before closing the app

Open personalizedrefrigerator opened this issue 4 months ago • 0 comments

Operating system

Linux

Joplin version

86c035c90973e7b9824d7fefb3134bcaa94ad563

Desktop version info

N/A

Current behaviour

Updating the mobile note editor, then quickly unmounting the component results in loss of the last-entered data.

In particular,

  • In a testing environment, waiting > 100ms since the last edit seems to consistently allow the last changes to be saved.
  • If the component is unmounted < 100ms (e.g. 98ms) since the last edit, the last changes are lost.

On a real device, this 100ms threshold may be greater.

Test case: commit.

Expected behaviour

The last change to the editor should be preserved, even if made very briefly before closing the editor.

Notes

  • Similar to https://github.com/laurent22/joplin/issues/11124, but probably a different issue (#11124 is specific to sync).

Logs

No response