Documentation Index
Fetch the complete documentation index at: https://docs.tsdraw.com/llms.txt
Use this file to discover all available pages before exploring further.
IndexedDB
The easiest way to persist state is thepersistenceKey prop. It stores the document in IndexedDB and enables cross-tab sync.
Snapshots
Snapshots are JSON-serializable objects.Saving
Loading
Callbacks
React to changes in real-time:Record Types
Snapshots use flat arrays ofTsdrawPersistedRecord ('page' or 'shape'). Convert them using core utilities: