Locking page via keyboard shortcut causes data loss


When writing text in any object and triggering the “lock page” information might be lost. You might write down or change a word, then lock the page using the keyboard shortcut. The page renders and you realize your changes was lost. Now there are two possible scenarios:

  1. You exit the object and open it again. Then everything works fine and your changes have been saved.
  2. Instead of exiting the object, you decide to unlock the page again. All changes that have been made (only weren’t visible) are now really gone because the editor restores the state of the locked object.


  1. Write down some words.
  2. Lock the page using the keyboard shortcut.
  3. Realize that data was lost.
  4. I was able to provide you a video capture of the bug, here it is:


I would expect that all edits are saved


  • OS:
    MacOS Ventura 13.2
  • Device:
    MacBook Pro M1
  • Anytype Version:
    Version: 0.30.0


There are several ways to trigger this. Hitting enter seems to fix this problem, since a new block is created. Deletion as well as edits of words are lost. I don’t know what happens to the data under the hood but i do know that locking too quickly causes loss of data. I think it takes some time for the editor to save the data. But there is no mechanism to prevent actions that are faster than the process of saving.

In the recording you can clearly see that the moment I lock the page, things behave weird. The only time changes were saved after hitting enter and then locking the page. I do unlock the page afterwards on purpose. As described before, exiting and reopening the object each time after locking it would solve the problem. But it should of course also work without that workaround.

1 Like

Thanks @jannis!

I can confirm this bug, no matter how long I wait to lock it, it always results in data-loss.

This report has been added to our issue tracker and received by the Development Team.

1 Like

Update: I can confirm that it does not matter how fast you lock the page. I also noticed that this bug only occurs when using the keyboard shortcut. Locking the page via the dropdown menu does not cause data loss.

1 Like

Thanks for the follow up @jannis, I noted this in the issue :raised_hands:

1 Like

This issue has been fixed by the Development Team and will be implemented in an upcoming release.

1 Like

Fixed in 0.31.0 :partying_face:

1 Like