File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 12
12
* --> Middleware #1: Updates snap object with latest snapshot
13
13
*
14
14
* @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
16
16
*
17
17
* @function changeSetState
18
18
* @param component : stateNode property on a stateful class component's FiberNode object
@@ -51,12 +51,10 @@ module.exports = (snap, mode) => {
51
51
let concurrent = false ; // flag to check if we are in concurrent mode
52
52
53
53
function sendSnapshot ( ) {
54
- // don 't send messages while jumping or while paused
54
+ // Don 't send messages while jumping or while paused
55
55
// DEV: So that when we are jumping to an old snapshot it
56
- // wouldn't think we want to create new snapshots
57
56
if ( mode . jumping || mode . paused ) return ;
58
57
const payload = snap . tree . getCopy ( ) ;
59
- // console.log('payload', payload);
60
58
window . postMessage ( {
61
59
action : 'recordSnap' ,
62
60
payload,
You can’t perform that action at this time.
0 commit comments