From dbe80c40d7a370d257289983bec54968645a71d6 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 20 Mar 2018 18:25:04 +0100 Subject: [PATCH] Render when pluginsConfig changes --- client/coral-framework/hocs/withSlotElements.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/coral-framework/hocs/withSlotElements.js b/client/coral-framework/hocs/withSlotElements.js index a4b39c907..dc44f97db 100644 --- a/client/coral-framework/hocs/withSlotElements.js +++ b/client/coral-framework/hocs/withSlotElements.js @@ -83,6 +83,11 @@ const createHOC = ({ } if (changes.length === 1 && changes[0] === 'reduxState') { + // If pluginsConfig changed, we'll have to rerender everything. + if (this.props.reduxState.pluginsConfig !== next.reduxState.pluginsConfig) { + return true; + } + const prevChildrenKeys = this.getSlotElements(this.props).map( child => child.key );