Steps to reproduce
Write a script that would run to identical API requests to add a new node to any existing node. The key here is to not wait until the first request finishes before starting the new one.
Use the /doc/edit API with
changes containing only one
Open the node to which you will be adding items in Dynalist before running the script.
Both inserted nodes should show up. They should be still there after I refresh the page or re-run the app.
The inserted nodes do show up — both of them. BUT, after I refresh the page, one of them is gone.
I suppose they show up initially due to the Websocket updates. However, due to a race condition on the server, only one of them gets to be stored in the database.
I use the latest Mojave and Safari 12.0.3 for the web client, but otherwise, the environment doesn’t matter.