tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.

Home Page:https://tldraw.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: I just lost all my tldraws. What can I do to make sure it doesn't happen again?

Welding-Torch opened this issue · comments

What happened?

Today I opened Chrome and went to tldraw.com, and all my previous tldraws just weren't there. It's like I started from scratch. I know that this may be because Chrome automatically deletes temp files from time to time, but come on! I had stuff on there that I really liked.

I know that you can export a copy of your tldraw project as a file, but that doesn't happen automatically periodically. It would be great if some way to actually save tldraws in such a way that it'll never leave my PC is implemented.

In the meantime, any idea on how I could potentially recover auto-deleted tldraws?

Thanks.

How can we reproduce the bug?

Idk how, because idk when Chrome randomly decides to clear stuff from my pc.

What browsers are you seeing the problem on?

Chrome

Contact Details

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Hey! Sorry to hear that.

When you use https://www.tldraw.com/ everything is stored locally in your browser. So if you clear the browser storage you'd also loose all the tldraw data. There a few things you can do:

  1. You can share your document, which creates a publicly available project. Anyone with a link can access it. This kind of project is also stored in a database, so you won't loose it if you clear browser storage. To share it click on the Share button in the top right corner.
  2. Like you mentioned you can save the document to a file as a backup.
  3. We also have a VS Code extension with which you can open local files. It stores the data on your hard drive, so you can handle the backups as with all your regular files.

Hey, thank for the reply and for understanding :)

Sharing the document is the only solution I didn't know about before. I'll use it to backup and save my data from now on.