@mocanvas/editor · function
declare function useTLSchemaFromUtils(options?: TLStoreSchemaOptions): StoreSchema<EditorRecord, EditorStoreProps>A schema built from the given utils, memoised.
The dependency list is the *contents* of the util arrays, not the arrays
themselves: an inline shapeUtils={[MyShape]} is a fresh array on every
render, and depending on its identity would rebuild the schema — and with it
the store — on every keystroke.
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.