Skip to content

Commit e979cda

Browse files
committed
linkFiber comments
1 parent 763db81 commit e979cda

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

package/linkFiber.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* --> Middleware #1: Updates snap object with latest snapshot
1313
*
1414
* @function sendSnapshot
15-
* --> Middleware #2: Gets a copy of the current snapshot state tree and posts it to the window
15+
* --> Middleware #2: Gets a copy of the current snap.tree and posts a message to the window
1616
*
1717
* @function changeSetState
1818
* @param component : stateNode property on a stateful class component's FiberNode object
@@ -51,12 +51,10 @@ module.exports = (snap, mode) => {
5151
let concurrent = false; // flag to check if we are in concurrent mode
5252

5353
function sendSnapshot() {
54-
// don't send messages while jumping or while paused
54+
// Don't send messages while jumping or while paused
5555
// DEV: So that when we are jumping to an old snapshot it
56-
// wouldn't think we want to create new snapshots
5756
if (mode.jumping || mode.paused) return;
5857
const payload = snap.tree.getCopy();
59-
// console.log('payload', payload);
6058
window.postMessage({
6159
action: 'recordSnap',
6260
payload,

0 commit comments

Comments
 (0)