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

Commit e76d574

Browse files
committed
Merge pull request #28 from boopathi/master
Fixes nextProps and nextState to observe when component updates
2 parents 7a85477 + 26ed039 commit e76d574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mixin.js

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

0 commit comments

Comments
 (0)