@@ -66,9 +66,7 @@ function sendSnapshot(snap: Snapshot, mode: Mode): void {
66
66
if ( ! snap . tree ) {
67
67
snap . tree = new Tree ( 'root' , 'root' ) ;
68
68
}
69
- // console.log('inside of inside of linkFiber.ts, before cleanTreeCopy(), snap:', snap);
70
69
const payload = snap . tree . cleanTreeCopy ( ) ;
71
- // console.log('inside of linkFiber.ts, after cleanTreeCopy() payload:', payload);
72
70
if ( isRecoil ) {
73
71
getRecoilState ( ) ;
74
72
payload . AtomsRelationship = allAtomsRelationship ;
@@ -96,7 +94,6 @@ function updateSnapShotTree(snap: Snapshot, mode: Mode): void {
96
94
circularComponentTable . clear ( ) ;
97
95
snap . tree = createTree ( current ) ;
98
96
}
99
- console . log ( 'SNAP.TREE:' , snap . tree )
100
97
sendSnapshot ( snap , mode ) ;
101
98
}
102
99
@@ -171,9 +168,6 @@ function createTree(
171
168
fromSibling = false
172
169
) {
173
170
// Base case: child or sibling pointed to null
174
- // if (currentFiber.tag === 5) {
175
- // console.log(currentFiber)
176
- // }
177
171
178
172
if ( ! currentFiber ) return null ;
179
173
if ( ! tree ) return tree ;
@@ -232,16 +226,12 @@ function createTree(
232
226
stateNode
233
227
) ;
234
228
235
- // console.log(componentData)
236
- // console.log('stateNode inside of line 232:', stateNode)
237
229
newState = stateNode . state ;
238
230
componentFound = true ;
239
231
}
240
232
241
233
let hooksIndex ;
242
234
243
-
244
-
245
235
const atomArray = [ ] ;
246
236
atomArray . push ( memoizedProps ) ;
247
237
@@ -327,7 +317,6 @@ function createTree(
327
317
let newNode = null ;
328
318
// We want to add this fiber node to the snapshot
329
319
if ( componentFound || newState === 'stateless' ) {
330
- console . log ( 'INSIDE LINKFIBER, CURRENTFIBER:' , currentFiber ) ;
331
320
if ( fromSibling ) {
332
321
newNode = tree . addSibling (
333
322
newState ,
@@ -344,21 +333,16 @@ function createTree(
344
333
} else {
345
334
newNode = tree ;
346
335
}
347
- // console.log('inside LinkFiber, circularComponentTable:', circularComponentTable);
348
336
// Recurse on children
349
337
if ( child && ! circularComponentTable . has ( child ) ) {
350
- // if (currentFiber.tag === 5) console.log('inside recursive call in linkFiber', currentFiber);
351
338
// If this node had state we appended to the children array,
352
339
// so attach children to the newly appended child.
353
340
// Otherwise, attach children to this same node.
354
-
355
341
circularComponentTable . add ( child ) ;
356
- // console.log(createTree(child, newNode))
357
342
createTree ( child , newNode ) ;
358
343
}
359
344
// Recurse on siblings
360
345
if ( sibling && ! circularComponentTable . has ( sibling ) ) {
361
- // if (currentFiber.tag === 5) console.log('inside recursive call in linkFiber', currentFiber);
362
346
circularComponentTable . add ( sibling ) ;
363
347
createTree ( sibling , newNode , true ) ;
364
348
}
0 commit comments