Skip to content

Incorrect {{has-block}} during interop #4

@chancancode

Description

@chancancode

As explained in the README:

On Ember versions without native named blocks support, when passing only named blocks (without passing a <:default> or <:main> block) to an external (addon) component whose template was not preprocessed by this polyfill, {{has-block}} in that component's template will return true.

This is unlikely to be an issue in practice – if you are running an Ember version that requires this polyfill and the addon itself is not also using the polyfill, it probably means that the addon component you are invoking does not accept named blocks anyway, so there is no use in passing them.

This is due to desugaring the named blocks into the default/main block. There is probably no way to fix this, but seems unlikely to be a real issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions