Tldraw/apps/examples/src/examples/before-delete-shape/README.md

379 B

title component category priority
Before delete shape ./BeforeDeleteShapeExample.tsx editor-api 4

Register a handler to run before shapes are deleted.


You can intercept the creation of any record in the store. This example intercepts arrow creation to make sure each arrow has a label. You can do the same thing to change the props of any newly created shape.