Render when pluginsConfig changes

This commit is contained in:
Chi Vinh Le
2018-03-20 18:25:04 +01:00
parent db5eedf6a1
commit dbe80c40d7
@@ -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
);