From 26ed0396a92c5f9b5aa1d5ae3bd7121386240505 Mon Sep 17 00:00:00 2001 From: Boopathi Rajaa Date: Tue, 28 Apr 2015 02:32:29 +0530 Subject: [PATCH] Fixes nextProps and nextState to observe when component updates. Otherwise, when componentWillUpdate is triggered, the observe function gets called and the nextProps and nextState gets dropped even if changed --- src/Mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mixin.js b/src/Mixin.js index b70c1a6..71f436f 100644 --- a/src/Mixin.js +++ b/src/Mixin.js @@ -53,7 +53,7 @@ var Mixin = { componentWillUpdate: function(nextProps: any, nextState: any) { // only subscribe if props or state changed if (nextProps !== this.props || nextState !== this.state) { - this._subscribe(); + this._subscribe(nextProps, nextState); } },