@@ -121,7 +121,7 @@ module.exports = (snap, mode) => {
121
121
// Save component's state and setState() function to our record for future
122
122
// time-travel state changing. Add record index to snapshot so we can retrieve.
123
123
componentData . index = componentActionsRecord . saveNew ( stateNode . state , stateNode ) ;
124
- newState = { state : stateNode . state } ;
124
+ newState = stateNode . state ;
125
125
componentFound = true ;
126
126
}
127
127
@@ -148,18 +148,6 @@ module.exports = (snap, mode) => {
148
148
componentFound = true ;
149
149
} ) ;
150
150
}
151
- } else {
152
- console . log ( 'in create tree else' )
153
- console . log ( 'this is currentFiber from createTree' , currentFiber )
154
- console . log ( 'this is memoizedState from createTree' , memoizedState )
155
- // grab stateless components here
156
- if ( elementType ) {
157
- if ( elementType . name ) {
158
- tree . appendChild ( 'stateless' , elementType . name , index ) ;
159
- } else {
160
- tree . appendChild ( 'stateless' , elementType , index ) ;
161
- }
162
- }
163
151
}
164
152
165
153
// This grabs stateless components
@@ -233,7 +221,6 @@ module.exports = (snap, mode) => {
233
221
234
222
// ! BUG: skips 1st hook click
235
223
function updateSnapShotTree ( ) {
236
- < << << << HEAD
237
224
/* let current;
238
225
// If concurrent mode, grab current.child
239
226
if (concurrent) {
0 commit comments