Skip to content

Commit

Permalink
Fix 'readProps' and 'readState' (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurxavierx authored Nov 27, 2018
1 parent 4c2c263 commit 1089573
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/React/Basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,16 @@ exports.send_ = function(buildStateUpdate) {
};

exports.readProps = function(self) {
return self.instance_.props.$$props;
return function() {
return self.instance_.props.$$props;
};
};

exports.readState = function(self) {
var state = self.instance_.state;
return state === null ? null : state.$$state;
return function() {
var state = self.instance_.state;
return state === null ? null : state.$$state;
};
};

exports.make = function(_unionDict) {
Expand Down

0 comments on commit 1089573

Please sign in to comment.