@mocanvas/editor · interface

TldrawEditorWithoutStoreProps

interface TldrawEditorWithoutStoreProps extends TldrawEditorBaseProps

The branch where the component builds the store from what the document needs.


Properties · 8

defaultName?: string

Name given to the document's first page.

initialData?: EditorStoreSnapshot["store"]

Records to open, as a plain serialized map.

migrations?: readonly MigrationSequence[]

Further migration sequences to register in the schema.

persistenceKey?: string

Persist the document under this key, in this browser.

Local only — IndexedDB in the page, nothing sent anywhere. Two editors given the same key share a document and stay in step.

records?: Readonly<Record<string, CustomRecordInfo<string>>>

The app's own top-level record types, beyond shapes and bindings.

sessionId?: string

Which *session* the persisted state belongs to. Defaults to the tab.

Session state is the camera, the selection and the current page: two tabs on one board are two viewpoints, and sharing them would drag one person's camera around whenever the other scrolled.

snapshot?: EditorStoreSnapshot

A snapshot to open.

store?: undefined

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.