-
-
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
[Bug] A yielded 'fn' from a component is incorrectly rendered as [object Object] #20589
Comments
without digging in to {{#let (fn someFn 1) as |partiallyApplied|}}
{{ (partiallyApplied) }}
{{/let}} and {{ (someFn 1) }} as long as |
Here is a reproduction, showing that this happens with Resources... but even worse: errors with Classic Class and function helpers. With the classic constructs, we get an error saying that My hypothesis is that the |
I just remembered!!! We have |
So maybe the real question here is -- why do we have 4 ways to partially apply arguments? and can we get that down to 1? |
🐞 Describe the Bug
A yielded 'fn' from a component is incorrectly rendered as [object Object]
🔬 Minimal Reproduction
Inside a component I have this
I use the 'fn' helper to be able to add more positional arguments
😕 Actual Behavior
This renders
[object Object]
🤔 Expected Behavior
Should render
3.5
🌍 Environment
ember-cli: 5.4.0
node: 18.18.0
os: darwin arm64
browser: chrome
➕ Additional Context
Using the let helper does render the expected output.
@NullVoxPopuli suggested this might be a bug in 'fn', hence this report.
The text was updated successfully, but these errors were encountered: