From a4be990d361e846922eef93c87bf4293c4c2eb26 Mon Sep 17 00:00:00 2001 From: Dan Green Date: Thu, 28 Dec 2017 17:20:57 -0500 Subject: [PATCH] (#1736) Add forceReRender to addonsAPI --- lib/addons/src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/addons/src/index.js b/lib/addons/src/index.js index 548103c170c8..da9e308972c8 100644 --- a/lib/addons/src/index.js +++ b/lib/addons/src/index.js @@ -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();