-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Based on the documentation and by taking a look at the source code, right now the MODULE_DOM_CREATED notification is fired when the module is first loaded. Subsequent calls to updateDom do not fire any event.
I think it would be very beneficial to add a notification for each time the DOM is updated. I am currently accomplishing this in a vary hacky way, but it would be nice to add a notification to know exactly when the DOM update is complete so the module can interact with the new DOM if necessary.
My proposal is to add MODULE_DOM_UPDATED as a notification that fires when calls to updateDom are made.
The same code that is used to send the MODULE_DOM_CREATED notification is also used during updateDom, so the code changes will be minimal.
I'm happy to submit a PR for this change, but wanted to discuss it here first.