-
-
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
Angle components can't be rendered using the {{component}} helper #12590
Comments
It should work as if you had invoked the glimmer component with angles. @Serabe was going to take a peek at this in spare time. Since angles are behind a FF we haven't been in a huge rush. But yeah, coordinating with @Serabe and helping with this would be welcome :-)
Haha, that is insane. That should not work. 😄 Also vaguely related is creating components with closures and ensuring those work: |
@mixonic Great! I'll try to whip up a PR in the next few days. From what I've seen it doesn't look too difficult :) |
Technically, it is fine (and what is actually expected by the component-node-manager). If we want to allow For example, when using |
@rwjblue Thanks for chiming in!
I wasn't thinking about removing the assertion. Instead I intended to investigate whether it would be possible to make it work as if I had passed |
@renato-zannon - Ya, I wasn't trying to suggest you would take an improper shortcut. The fix for this specific thing (not requiring folks use
I don't really think it needs an RFC, but I would like one of the angle bracket implementers to chime in so we can choose a path forward. @wycats / @tomdale / @chancancode - What are your thoughts on angle brackets invoked from |
I believe there was consensus that a GlimmerComponent could be used, and that auto-mut would not apply (normal glimmer component semantics). |
A few notes:
|
Sorry for the delay. Tomorrow I'll be catching a flight to India, I'll b So far, I like @rwjblue's idea of marking the automut and "unboxing" it.
|
I am closing this issue as angle bracket components are currently being revisited and this issue might not be relevant anymore. |
I'm experimenting with porting some components to angle bracket style in canary, and ended up stumbling on this. When I use
{{component "my-angle-component"}}
Ember errors out with:which suggests that the
{{component}}
code path hasn't been prepared for angle components yet.So, my questions are:
<my-angle-component>
in the first place? Or is there some higher-level definition pending to decide what the behavior should be?Update: It seems to work alright if I use
{{component "<my-angle-component>"}}
(with requires someconcat
ing, in my case). Not sure if this is intentional though, I wasn't able to find any explicit tests for this caseThe text was updated successfully, but these errors were encountered: