You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed a somewhat convoluted issue where a yielded component is not rendered when combined with ...attributes.
Given a component that yields a component:
{{!-- angle-block-params.hbs --}}{{!-- This container may not be strictly necessary, but gives `...attributes` a place to land. --}}
<div ...attributes>
{{yield (component"x-test-wrapper")}}
</div>
And invoking it:
<AngleBlockParams ...attributes as |BlockParam|>
<BlockParam />
</AngleBlockParams>
Outputs the static string BlockParam instead of the usual list of numbers that x-test-wrapper produces.
Interestingly, invoking it without ...attributes or adopting the curly-component syntax produces the expected behavior:
<AngleBlockParams as |BlockParam|>
<BlockParam />
</AngleBlockParams>
<AngleBlockParams ...attributes as |BlockParam|>
{{BlockParam}}
</AngleBlockParams>
The expected behavior also occurs if ember-ast-hot-load.enabled=false is set in ember-cli-build.js, so the issue does appear to be caused by this addon.
I noticed a somewhat convoluted issue where a yielded component is not rendered when combined with
...attributes
.Given a component that yields a component:
And invoking it:
Outputs the static string
BlockParam
instead of the usual list of numbers thatx-test-wrapper
produces.Interestingly, invoking it without
...attributes
or adopting the curly-component syntax produces the expected behavior:The expected behavior also occurs if
ember-ast-hot-load.enabled=false
is set inember-cli-build.js
, so the issue does appear to be caused by this addon.I have a branch with sample code that produces the problem at master...nwhittaker:block-params.
The text was updated successfully, but these errors were encountered: