-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
report: allow CRC to use renderTextUrl #9237
Conversation
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 started to review this and then realized you just wanted to merge into @connorjclark 's PR, soooo feel free to ignore.
* @return {Node} | ||
*/ | ||
static createChainNode(dom, tmpl, segment) { | ||
static createChainNode(dom, tmpl, segment, detailsRenderer) { |
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.
this definitely feels weird and passing this
to anything smells, but I don't really have a better suggestion that doesn't involve totally refactoring how details renderer is structured, sooooooo. sure, why not :)
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.
maybe this class should extend DR? but i agree on deferring, this shouldnt be handled within this pr
@@ -182,7 +183,7 @@ class CriticalRequestChainRenderer { | |||
for (const key of Object.keys(root.tree)) { | |||
const segment = CriticalRequestChainRenderer.createSegment(root.tree, key, | |||
root.startTime, root.transferSize); | |||
CriticalRequestChainRenderer.buildTree(dom, tmpl, segment, containerEl, details); | |||
CriticalRequestChainRenderer.buildTree(dom, tmpl, segment, containerEl, details, detRenderer); |
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.
det
!? we at least gotta go with deets
😆
is this just coming up on 100
then?
|
detailsRenderer
was first used in snippetRenderer, so I figured why not.