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 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,
You can’t perform that action at this time.
0 commit comments