Project data is being lost sometimes because of early polling and delayed fetch.
Steps on how and why is it happening:
if the project polling starts before the fetch of project an empty project is polled.
When the empty project is polled to back-end the project in database is overridden with empty nodes and edges
Possible Fix:
(Quick way) Do NOT poll unless the fetch is happened.
(Best Way) to have separate route to clear the project and if there is an update request with empty nodes and edges app-server simply rejects the request
Project data is being lost sometimes because of early polling and delayed fetch.
Steps on how and why is it happening:
Possible Fix: