mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Rerender all Slot Components when config changes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user