Skip to content

SchemaLoader.loaded event #255

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions