Tldraw/apps/examples/src/examples/after-create-update-shape/README.md

431 B

title component category priority
After create/update shape ./AfterCreateUpdateShapeExample.tsx editor-api 5

Register a handler to run after shapes are created or updated.


You can register handlers to run after any record is created or updated. This is most useful for updating other records in response to a particular record changing. In this example, we make sure there's only ever one red shape on a page.