@mocanvas/editor · interface

TldrawEditorWithStoreProps

interface TldrawEditorWithStoreProps extends TldrawEditorBaseProps

The branch where the host owns the store.

Shape and binding utils are *not* accepted here, and that is deliberate rather than an oversight: the store's schema was decided when the store was built, and utils passed at this point could not affect it. Accepting them would let a document load against a schema that does not match the utils rendering it.


Properties · 10

bindingUtils?: never
defaultName?: never
initialData?: never
migrations?: never
persistenceKey?: never
records?: never
sessionId?: never
shapeUtils?: never

Not accepted with store: the schema is already fixed.

snapshot?: never
store: EditorStore | TLStoreWithStatus

The store to use, or a store that may still be arriving.

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.