Skip to content

Commit 9935a0c

Browse files
author
Michael Trotter
committed
Fix shouldUpdate ffi
1 parent 3dfd110 commit 9935a0c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/React/Basic.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ exports.createComponent_ = function(noUpdate, buildStateUpdate, displayName) {
9090
Component.displayName = displayName;
9191

9292
Component.prototype.shouldComponentUpdate = function(nextProps, nextState) {
93-
return this.$$spec.shouldUpdate(contextToSelf(this))(nextProps)(nextState);
93+
return this.$$spec.shouldUpdate(contextToSelf(this))(nextProps.$$props)(
94+
nextState === null ? null : nextState.$$state
95+
);
9496
};
9597

9698
Component.prototype.componentDidMount = function() {

0 commit comments

Comments
 (0)