Skip to content

Commit 98d3ba3

Browse files
committed
added bind to method
1 parent ccfb7f5 commit 98d3ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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;

0 commit comments

Comments
 (0)