TLStoreSnapshot

See source code

A snapshot of a tldraw store at a specific point in time, containing all records and metadata. Used for persistence, synchronization, and creating store backups.

type TLStoreSnapshot = StoreSnapshot<TLRecord>

Example

// Create a snapshot
const snapshot: TLStoreSnapshot = store.getSnapshot()

// Restore from snapshot
store.loadSnapshot(snapshot)
Prev
TLStoreSchema
Next
TLTextShape