mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 11:17:52 +08:00
Render when pluginsConfig changes
This commit is contained in:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user