Skip to content

Commit 2b859ec

Browse files
authored
Merge pull request #99 from oslabs-beta/rydang/binding
binding bug fixed
2 parents a9e9dd5 + 471b97c commit 2b859ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/linkFiber.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = (snap, mode) => {
3434
oldSetState(state, () => {
3535
updateSnapShotTree();
3636
sendSnapshot();
37-
callback();
37+
callback.bind(component)();
3838
});
3939
};
4040
component.setState.linkFiberChanged = true;

package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reactime",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "A library that helps debug React by memorizing the state of components with every render.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)