Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
4lessandrodev committed Apr 14, 2024
2 parents 23981a3 + 00db292 commit 8c69d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ This version introduces significant changes to the event handling system, enhanc
const contextX = Context.events();

// Listening global events
contextX.subscribe('SIGNUP', (arg) => {
contextX.subscribe('USER_REGISTERED', (arg) => {
console.log(arg);
});

Expand Down Expand Up @@ -220,7 +220,7 @@ This version introduces significant changes to the event handling system, enhanc

dispatch(user: User): void {
// dispatch to global context event manager
contextY.dispatchEvent(this.params.eventName, user.toObject());
user.context().dispatchEvent("USER_REGISTERED", user.toObject());
};
}

Expand Down

0 comments on commit 8c69d6e

Please sign in to comment.