Skip to content

Commit e78bf4c

Browse files
committed
Added commented console logs to print fiber tree
1 parent 2c9be9e commit e78bf4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/routers/linkFiber.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export default function linkFiber(mode: Status): () => Promise<void> {
111111
// Obtain the FiberRootNode, which is the first value in the FiberRoot Set:
112112
fiberRoot = devTools.getFiberRoots(1).values().next().value;
113113

114+
// console.log('Initial fiber root', fiberRoot);
115+
114116
// ----------INITIALIZE THE TREE SNAP SHOT ON CHROME EXTENSION--------------
115117
await throttledUpdateSnapshot(fiberRoot, mode); // only runs on start up
116118

@@ -128,6 +130,8 @@ export default function linkFiber(mode: Status): () => Promise<void> {
128130
// Obtain the updated FiberRootNode, after the target React application re-renders
129131
const fiberRoot = args[1];
130132

133+
// console.log('Updated fiber root', fiberRoot);
134+
131135
// If the target React application is visible, send a request to update the snapShot tree displayed on Chrome Extension
132136
if (isVisible) throttledUpdateSnapshot(fiberRoot, mode);
133137
// After our added work is completed we invoke the original onComitFiberRoot function

0 commit comments

Comments
 (0)