App lifecycle

app:before:start#

Emitted immediately before the application start sequence runs. Use it to adjust services or options before modules initialize.

Type: hook (handler may return a value).

Payload: none.

Example:

app.on('app:before:start', () => {
  // react to the signal
});

app:destroy#

Emitted when the editor instance is destroyed.

Type: signal.

Payload: none.

Example:

app.on('app:destroy', () => {
  // react to the signal
});

app:start#

Emitted when the application has started and core modules are running.

Type: signal.

Payload: none.

Example:

app.on('app:start', () => {
  // react to the signal
});

app:stop#

Emitted when the application is stopping.

Type: signal.

Payload: none.

Example:

app.on('app:stop', () => {
  // react to the signal
});