Skip to content

Commit 0b75d68

Browse files
(delete) removed console.logs from linkFiber
1 parent 3f2828b commit 0b75d68

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/backend/linkFiber.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ function sendSnapshot(snap: Snapshot, mode: Mode): void {
6666
if (!snap.tree) {
6767
snap.tree = new Tree('root', 'root');
6868
}
69-
// console.log('inside of inside of linkFiber.ts, before cleanTreeCopy(), snap:', snap);
7069
const payload = snap.tree.cleanTreeCopy();
71-
// console.log('inside of linkFiber.ts, after cleanTreeCopy() payload:', payload);
7270
if (isRecoil) {
7371
getRecoilState();
7472
payload.AtomsRelationship = allAtomsRelationship;
@@ -96,7 +94,6 @@ function updateSnapShotTree(snap: Snapshot, mode: Mode): void {
9694
circularComponentTable.clear();
9795
snap.tree = createTree(current);
9896
}
99-
console.log('SNAP.TREE:', snap.tree)
10097
sendSnapshot(snap, mode);
10198
}
10299

@@ -171,9 +168,6 @@ function createTree(
171168
fromSibling = false
172169
) {
173170
// Base case: child or sibling pointed to null
174-
// if (currentFiber.tag === 5) {
175-
// console.log(currentFiber)
176-
// }
177171

178172
if (!currentFiber) return null;
179173
if (!tree) return tree;
@@ -232,16 +226,12 @@ function createTree(
232226
stateNode
233227
);
234228

235-
// console.log(componentData)
236-
// console.log('stateNode inside of line 232:', stateNode)
237229
newState = stateNode.state;
238230
componentFound = true;
239231
}
240232

241233
let hooksIndex;
242234

243-
244-
245235
const atomArray = [];
246236
atomArray.push(memoizedProps);
247237

@@ -327,7 +317,6 @@ function createTree(
327317
let newNode = null;
328318
// We want to add this fiber node to the snapshot
329319
if (componentFound || newState === 'stateless') {
330-
console.log('INSIDE LINKFIBER, CURRENTFIBER:', currentFiber);
331320
if (fromSibling) {
332321
newNode = tree.addSibling(
333322
newState,
@@ -344,21 +333,16 @@ function createTree(
344333
} else {
345334
newNode = tree;
346335
}
347-
// console.log('inside LinkFiber, circularComponentTable:', circularComponentTable);
348336
// Recurse on children
349337
if (child && !circularComponentTable.has(child)) {
350-
// if (currentFiber.tag === 5) console.log('inside recursive call in linkFiber', currentFiber);
351338
// If this node had state we appended to the children array,
352339
// so attach children to the newly appended child.
353340
// Otherwise, attach children to this same node.
354-
355341
circularComponentTable.add(child);
356-
// console.log(createTree(child, newNode))
357342
createTree(child, newNode);
358343
}
359344
// Recurse on siblings
360345
if (sibling && !circularComponentTable.has(sibling)) {
361-
// if (currentFiber.tag === 5) console.log('inside recursive call in linkFiber', currentFiber);
362346
circularComponentTable.add(sibling);
363347
createTree(sibling, newNode, true);
364348
}

0 commit comments

Comments
 (0)