Skip to content

Commit

Permalink
fix: emitting ready event twice when bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Tymek committed Jun 24, 2024
1 parent a05b298 commit 341ee52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ export class UnleashClient extends TinyEmitter {
await this.storage.save(storeKey, this.bootstrap);
this.toggles = this.bootstrap;
this.emit(EVENTS.READY);
this.readyEventEmitted = true;
}

this.sdkState = 'healthy';
Expand Down

0 comments on commit 341ee52

Please sign in to comment.