Skip to content

Commit e26d1dd

Browse files
committed
fix: set NotifyInSync to true to avoid omitting events
this is more coherent (as not dropping any event) to subscription model
1 parent 56e1c81 commit e26d1dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/controllers/EventsController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ export const EventsController = {
4040
state,
4141

4242
subscribe(callback: (newState: EventsControllerState) => void) {
43-
return sub(state, () => callback(state));
43+
return sub(state, () => callback(state), true);
4444
},
4545

4646
subscribeEvent(event: EventName, callback: (newEvent: EventsControllerState) => void) {
4747
return sub(state, () => {
4848
if (state.data.event === event) {
4949
callback(state);
5050
}
51-
});
51+
}, true);
5252
},
5353

5454
trackWalletImpression(props: {

0 commit comments

Comments
 (0)