Skip to content

SchemaLoader.loaded event #255

@kbarbounakis

Description

@kbarbounakis

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions