Rerender all Slot Components when config changes

This commit is contained in:
Chi Vinh Le
2018-03-20 19:00:19 +01:00
parent d98e64d6d7
commit d08aaecd12
@@ -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;
}