Skip to content

Notification on subsequent DOM updates (not just the first) #3534

@ryan-d-williams

Description

@ryan-d-williams

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions