Skip to content

Commit db460e5

Browse files
committed
fixing bug on newState
1 parent 540cd9d commit db460e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev-reactime/linkFiber.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ module.exports = (snap, mode) => {
116116
// Save component's state and setState() function to our record for future
117117
// time-travel state changing. Add record index to snapshot so we can retrieve.
118118
componentData.index = componentActionsRecord.saveNew(stateNode.state, stateNode);
119-
newState.state = stateNode.state;
119+
newState = {state: stateNode.state};
120120
componentFound = true;
121121
}
122122

0 commit comments

Comments
 (0)