The callback to be called when domain reload occurs.
This function will always call the callback, whenever any of the runtime modules are reloaded. The user can
filter by specified modules inside the callback. There is also a simpler variant called onDomainReloadClear
that will automatically call clear() on the value.
The onDomainReload decorator registers the specified
callbackwhenever a module is reloaded on the engine.