nimeshnayaju / tldrawe

Draw on any webpage with tldraw.
https://chrome.google.com/webstore/detail/tldrawe/mhkmpnjdjhckmcejgmajnjhbmclmkdnd
72 stars 4 forks source link

How is the information saved? #3

Closed metafory closed 1 year ago

metafory commented 1 year ago

Hi!

Amazing implementation of tldraw. Are you persisting the tldraw overlay for the specific URL with liveblocks? otherwise - how is the overlay saved for reuse?

T017 commented 1 year ago

I have the same question :)

nimeshnayaju commented 1 year ago

Hey, all contents of a page are stored locally in session storage, and the data is automatically cleared once the page session ends. Here's a link to the MDN documentation on Session Storage if you'd like to learn more.