Subscribe to config-change events.
The handler is called with the module's full current configuration immediately after
any mutation — whether through applyConfig, a module-specific setter, or resetConfig.
'config-change'
Receives the module's config (or undefined when config is cleared).
An unsubscribe function. Call it to remove only this handler without affecting other registered handlers for the same event type.
Subscribe to shown-features events.
The handler is called immediately after a module's show() method (or equivalent)
has updated the map with new data. Only available on modules that have a show method.
'shown-features'
Receives the data that was passed to show().
An unsubscribe function. Call it to remove only this handler without affecting other registered handlers for the same event type.
Remove all handlers for the given event type at once.
Prefer the unsubscribe function returned by on when you need to remove a single handler. Use
offfor bulk teardown — e.g. when unmounting a component that registered multiple handlers.