Skip to content

Commit

Permalink
Don't log renderAboveTheFold times on client transition
Browse files Browse the repository at this point in the history
Maybe we _should_, but we didn't previously.  This preserves existing behavior.
  • Loading branch information
gigabo committed May 26, 2016
1 parent 971b8ce commit 9c2bf19
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/react-server/core/ClientController.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,11 @@ class ClientController extends EventEmitter {
if (element.containerOpen || element.containerClose){
return; // Nothing left to do.
} else if (element.isTheFold) {
logger.time(`renderAboveTheFold.fromStart`, new Date - tStart);
logger.time(`renderAboveTheFold.individual`, totalRenderTime);
logger.time(`renderAboveTheFold.elementCount`, index + 1);
if (!this._previouslyRendered){
logger.time(`renderAboveTheFold.fromStart`, new Date - tStart);
logger.time(`renderAboveTheFold.individual`, totalRenderTime);
logger.time(`renderAboveTheFold.elementCount`, index + 1);
}
return; // Again, this isn't a real root element.
}

Expand Down

0 comments on commit 9c2bf19

Please sign in to comment.