Skip to content
This repository was archived by the owner on Jan 26, 2021. It is now read-only.

Commit 7d2dc7b

Browse files
committed
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
1 parent 7a85477 commit 7d2dc7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var Mixin = {
5252
componentWillUpdate: function componentWillUpdate(nextProps, nextState) {
5353
// only subscribe if props or state changed
5454
if (nextProps !== this.props || nextState !== this.state) {
55-
this._subscribe();
55+
this._subscribe(nextProps, nextState);
5656
}
5757
},
5858

0 commit comments

Comments
 (0)