Function onDomainReload

  • The onDomainReload decorator registers the specified callback whenever a module is reloaded on the engine.

    Parameters

    Returns AttributeDecorator<Attribute>

    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.