Open Capevace opened 3 years ago
Use a async hook system that an unlimited amount of plugins can subscribe to, that are decoupled from for example service state and action.
hooks .service('notifications') .onAction('create') .run(() => { // Do something }); hooks .service('notifications') .onSettingsChange('thing'); hooks .service('notifications') .trigger('create', notification);
Use a async hook system that an unlimited amount of plugins can subscribe to, that are decoupled from for example service state and action.