Skip to content

Commit

Permalink
(#1736) Add forceReRender to addonsAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreenisrael committed Dec 28, 2017
1 parent 146229d commit a4be990
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/addons/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export class AddonStore {
.map(name => this.loaders[name])
.forEach(loader => loader(api));
}

forceReRender() {
this.getChannel().emit('forceReRender'); // accessing this.channel via this.getChannel gives us validation
}
}

export default new AddonStore();

0 comments on commit a4be990

Please sign in to comment.