Skip to content

Commit

Permalink
fix: notify subscriptions after state changes (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdandois committed Oct 5, 2022
1 parent 924fbf2 commit 67c88be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/internal/state.ts
Expand Up @@ -76,6 +76,7 @@ export default class State {
const convertedState = this._convertState(state);
if (!requestedInterface) {
this._latestState = convertedState;
this._subscriptions.forEach((handler): void => handler(convertedState));
}

return convertedState;
Expand Down

0 comments on commit 67c88be

Please sign in to comment.