diff --git a/src/components/themr.js b/src/components/themr.js index e1709c1..8022e8c 100644 --- a/src/components/themr.js +++ b/src/components/themr.js @@ -151,17 +151,16 @@ export default (componentName, localTheme, options = {}) => ThemedComponent => { return composeTheme ? this.getTheme() : this.getThemeNotComposed() } - shouldComponentUpdate(prevProps) { + shouldComponentUpdate(nextProps) { const { composeTheme, theme, themeNamespace } = this.props if ( - composeTheme !== prevProps.composeTheme || - theme !== prevProps.theme || - themeNamespace !== prevProps.themeNamespace + composeTheme !== nextProps.composeTheme || + theme !== nextProps.theme || + themeNamespace !== nextProps.themeNamespace ) { this.theme_ = this.calcTheme() - return true } - return false + return true } render() {