Closed teddyzeenny closed 6 years ago
@teddyzeenny I think emberjs/ember.js#14222 fixed the first issue, can you confirm?
@chancancode I confirm the issue is fixed 🎉 .
There was one regression though https://github.com/emberjs/ember-inspector/pull/588, should be fixed next time I publish. It may be good to have a ViewUtils.getRootElement
API to avoid future breakage however I'm not sure what's the story behind multiple roots - ViewUitls.getRootElement(s)
?
@teddyzeenny that's usually not something you would see in apps. it's mainly for things like ember-islands where you manually instantiate multiple Component
s and call appendTo(...)
on each of them manually
@teddyzeenny what is the status of this? do you need any new APIs from me? 😄
@chancancode we'd need a way to know which components belong to which outlet without matching them through their controllers (which is what we're doing at the moment). The edge case that doesn't work currently when using controllers to match components to outlets is when multiple outlets use the same controller - all components will go under the first outlet.
That being said, tbqh I think our effort is best spent on building a Glimmer API to display the entire DOM tree in the inspector (Ã la devtools Elements tab) so we can replace the inspector's view tree altogether with a more sophisticated tab . So I'm thinking let's skip this issue and start working on an API for the new tab. What do you think?
Since we have the new component view tab now, I am closing this. Feel free to reopen if we need to do more work here!