emberjs / emberjs/ember.js

[Bug] Yielded undefined can be invoked as a component without error

Open
#19,788 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
22.6k
Forks
4.2k
Avg merge
3d 12h
Merged PRs (30d)
15

Description

### 🐞 Describe the Bug
This came up because I was losing my mind with a yielded component, only to find out that I had a typo. :upside_down_face:

### 🔬 Minimal Reproduction
Describe steps to reproduce. If possible, please, share a link with a minimal reproduction.

https://github.com/NullVoxPopuli/yield-undefined-repro

1. clone
2. ember s
3. click the button
4. I expect there to be an error, but there is none

### 😕 Actual Behavior

no error, but nothing is rendered

### 🤔 Expected Behavior

error, `No component manager found for undefined` or something like that

### 🌍 Environment

- Ember: - 3.25+
- Node.js/npm: - n/a
- OS: - n/a
- Browser: - n/a

### ➕ Additional Context

Prior to 3.25, I don't think this could have been an issue, because the previous _sole_ way to yield back components was with the `(component)` helper.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.