-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Adds Ember.Debug.RenderDebug
as an api for render debugging.
#11218
Conversation
a5ffa0e
to
1274406
Compare
We went with |
|
@teddyzeenny oooomg namespaces :-/ Is is painful to rename in inspector? |
I should be able to rename it - maybe to |
* @type {Object} | ||
* @private | ||
*/ | ||
renderNode: null, |
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 is internal and should not be leaked, it should at least have an underscore prefix and not be documented like it is a thing.
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.
The downside of making this inaccessible is that I can't match render nodes that I got from perf instrumentation to the render nodes in this view tree. (I use this to add render times next to the views in the view tree). Unless if we maybe provide the render node's guid
here and in perf instrumentation?
@teddyzeenny - I'd love to land this. Can you rebase, fix the issues that @krisselden mentioned? |
3b7bb98
to
69b8cbe
Compare
Ember.Debugging.RenderDebug
as an api for render debugging.Ember.Debug.RenderDebug
as an api for render debugging.
Updated. |
69b8cbe
to
7f00c91
Compare
I am happy with this. We can always iterate as we hit problems... @krisselden - Are you ok with this as a first iteration? |
@krisselden mentioned that the namespace |
@teddyzeenny I agree with that. |
@teddyzeenny - |
@rwjblue I think @krisselden meant there's a difference in concept between debug and inspection and therefore should have separate namespaces. @krisselden can you confirm/deny? I'd love to get this in as soon as possible so we can prevent more regressions to the view tree as Ember changes. |
@teddyzeenny - Gotcha. Yeah, I'm fine with |
@rwjblue yes it makes sense to move the data adapter but we should probably keep and deprecate the original |
Yes, absolutely! |
Currently exposes `Ember.Debug.RenderDebug.getTopLevelNode` which returns the top level inspected node. `InspectedNode` is a wrapper class for the htmlbars render node. It provides public debugging methods so that external tools like the Ember Inspector can use stable and tested apis.
7f00c91
to
4e3a106
Compare
☔ The latest upstream changes (presumably #12648) made this pull request unmergeable. Please resolve the merge conflicts. |
hey @teddyzeenny, is this still relevant? |
Not relevant anymore. Closing. |
Currently exposes
Ember.Debug.RenderDebug.getTopLevelNode
which returns the top level inspected node.InspectedNode
is a wrapper class for the htmlbars render node. It provides public debugging methodsso that external tools like the Ember Inspector can use stable and tested apis.
I'm looking for feedback on this approach (mainly the
InspectedNode
class). cc @rwjblue @krisselden