-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clean up PageviewPerformanceData tick a bit #9602
Conversation
@thsparks probably needs to review as well. |
return false; | ||
} | ||
|
||
if (envelope.baseType == "PageviewPerformanceData") { | ||
var pageName = envelope.baseData.name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is var
used throughout instead of const
? I don't see any reassignment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just matching the rest of the file since this one's going to be ported to several editors; this one's directly embedded in the page (not ts or anything) so we've historically been pretty cautious of using newfangled javascript features, though I believe we have stopped having to support editors that this would have caused problems in so should be fine to move over to let / const's across the board now (though I'd leave that for a separate pr most likely, just for ease of porting)
* clean up PageviewPerformanceData tick a bit * remove the if not props as that seems to be getting race conditioned or something
* clean up PageviewPerformanceData tick a bit * remove the if not props as that seems to be getting race conditioned or something
* clean up PageviewPerformanceData tick a bit * remove the if not props as that seems to be getting race conditioned or something
Here's an example of what the tick looks like when it goes through this fn:
into ->
end of fn
It looks like these are the ones that are getting specially handled to create the perf data table with non matching names.