This has just been solved: https://www.figma.com/blog/behind-the-feature-autosave/
Interesting timing on these articles getting published. Almost at exactly the same time, and almost polar opposites.