Skip to content

Commit 1089573

Browse files
Fix 'readProps' and 'readState' (#67)
1 parent 4c2c263 commit 1089573

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/React/Basic.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,16 @@ exports.send_ = function(buildStateUpdate) {
117117
};
118118

119119
exports.readProps = function(self) {
120-
return self.instance_.props.$$props;
120+
return function() {
121+
return self.instance_.props.$$props;
122+
};
121123
};
122124

123125
exports.readState = function(self) {
124-
var state = self.instance_.state;
125-
return state === null ? null : state.$$state;
126+
return function() {
127+
var state = self.instance_.state;
128+
return state === null ? null : state.$$state;
129+
};
126130
};
127131

128132
exports.make = function(_unionDict) {

0 commit comments

Comments
 (0)