Skip to content

Commit ce05de7

Browse files
(delete) removed console.log's and commented some of them out.. Reminder: clean the files of console.logs
1 parent 9a8984b commit ce05de7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/backend/linkFiber.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ function createTree(
170170
fromSibling = false
171171
) {
172172
// Base case: child or sibling pointed to null
173-
if (currentFiber.tag === 5) {
174-
console.log(currentFiber.stateNode)
175-
}
173+
// if (currentFiber.tag === 5) {
174+
// console.log(currentFiber.stateNode)
175+
// }
176176
if (!currentFiber) return null;
177177
if (!tree) return tree;
178178

@@ -229,7 +229,7 @@ function createTree(
229229
stateNode.state,
230230
stateNode
231231
);
232-
console.log(componentData)
232+
// console.log(componentData)
233233
// console.log('stateNode inside of line 232:', stateNode)
234234
newState = stateNode.state;
235235
componentFound = true;
@@ -347,7 +347,6 @@ function createTree(
347347
// so attach children to the newly appended child.
348348
// Otherwise, attach children to this same node.
349349
circularComponentTable.add(child);
350-
// console.log(createTree(child, newNode))
351350
createTree(child, newNode);
352351
}
353352
// Recurse on siblings
@@ -375,7 +374,6 @@ export default (snap: Snapshot, mode: Mode): (() => void) => {
375374
const devTools = window.__REACT_DEVTOOLS_GLOBAL_HOOK__;
376375
const reactInstance = devTools ? devTools.renderers.get(1) : null;
377376
fiberRoot = devTools.getFiberRoots(1).values().next().value;
378-
console.log(fiberRoot);
379377
const throttledUpdateSnapshot = throttle(() => updateSnapShotTree(snap, mode), 70);
380378
document.addEventListener('visibilitychange', onVisibilityChange);
381379
if (reactInstance && reactInstance.version) {

0 commit comments

Comments
 (0)