From d08aaecd127ed790890970d107661e1421b6e7b0 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 20 Mar 2018 19:00:19 +0100 Subject: [PATCH] Rerender all Slot Components when config changes --- client/coral-framework/hocs/withSlotElements.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/coral-framework/hocs/withSlotElements.js b/client/coral-framework/hocs/withSlotElements.js index dc44f97db..9b432ade8 100644 --- a/client/coral-framework/hocs/withSlotElements.js +++ b/client/coral-framework/hocs/withSlotElements.js @@ -83,8 +83,10 @@ 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) { + // If config changed, we'll have to rerender everything. + // Should only happen during development as this is + // usually static. + if (this.props.reduxState.config !== next.reduxState.config) { return true; }