From 1cf57534e37db5426797c6d1c8e0613d30e0e904 Mon Sep 17 00:00:00 2001 From: Alexander Rusakov Date: Mon, 4 Jul 2016 18:20:28 +0300 Subject: [PATCH] updateStatePropsIfNeeded() always return true with pure option = false --- src/components/connect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/connect.js b/src/components/connect.js index 3b60ebbce..7c59b5585 100644 --- a/src/components/connect.js +++ b/src/components/connect.js @@ -162,7 +162,7 @@ export default function connect(mapStateToProps, mapDispatchToProps, mergeProps, updateStatePropsIfNeeded() { const nextStateProps = this.computeStateProps(this.store, this.props) - if (this.stateProps && shallowEqual(nextStateProps, this.stateProps)) { + if (pure && this.stateProps && shallowEqual(nextStateProps, this.stateProps)) { return false }