WillDelTableCallback
The WillDelTableCallback type describes a function that is called before a Table is deleted from the Store.
(tableId: Id): boolean| Type | Description | |
|---|---|---|
tableId | Id | |
| returns | boolean |
|
The callback receives the table Id of the Table about to be deleted. It returns true to allow the deletion, or false to prevent it.
Multiple WillDelTableCallback functions can be registered and they will be called sequentially. If any callback returns false, the chain short-circuits and the Table will not be deleted.
Since
v8.0.0