Subscribing to events on content controls in large documents with many instances are not optimal. It is pretty bad that it is necessary to register events on every single content control. Please add new events on the document level. For example:
context.document.onContentControlUpdated
context.document.onContentControlDeleted
context.document.onContentControlEntered
context.document.onContentControlExited
Let us just subscribe to these and get the event on all content controls in the document. Much simpler and more effecient
The existing event context.document.onContentControlAdded works very well.
Also, remember to trigger the onContentControlUpdated event on any change to the contents and/or metadata.
No CommentsBe the first to comment