Description
SchemaLoader should raise an event when a new model definition is being added to the collection.
Solution
Use @themost/events#SyncSeriesEventEmitter and emit SchemaLoader.loaded to any subscriber e.g.
constructor() {
this.loaded = new SyncSeriesEventEmitter();
}
setModelDefinition(model) {
//...
this.loaded.emit(model);
}
Description
SchemaLoadershould raise an event when a new model definition is being added to the collection.Solution
Use
@themost/events#SyncSeriesEventEmitterand emitSchemaLoader.loadedto any subscriber e.g.