@mocanvas/editor · interface
interface TLErrorFallbackPropsFailure containment for the editor's React tree.
One badly-behaved shape component should cost you that shape, not the
document: <Canvas> wraps each shape body in a boundary of its own, and the
editor as a whole is wrapped in another. Without this, a TypeError inside
one custom ShapeUtil.component unmounts the whole editor and the user
loses the canvas.
Properties · 2
error: unknownWhat was thrown. Not necessarily an Error.
resetError?(): voidRe-mount the subtree. Undefined when the boundary was told not to retry.
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.