Before delete shape
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.