-
Notifications
You must be signed in to change notification settings - Fork 4
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
When the helper is prefixed with addon name, it throws error #11
Comments
Specifically, the prefixing is supported using https://github.com/rwjblue/ember-holy-futuristic-template-namespacing-batman. That should be distinct from the assertion thrown here—did it only appear when when you invoke with the namespace? Or is the problem with the helper itself, requiring a path? |
I believe the proper syntax for using ember-simple-set-helper is I think the issue is that the docs should have better examples of the proper syntax for developers to follow because they give examples like |
@chriskrycho Correct, it failed only when it's prefixed with namn space. It could be that the transform doesn't take the namespace into the case. |
Thanks @bachvo I've been tearing my hair out and actually came to open an issue and saw this. I've been using @pzuraq If it's a bug I have a reproduction app here which shows it failing (either visit the index route or there are tests). If on the other hand this is expected behaviour and we need update the docs, I'd be happy to put together a PR to do that. |
At this point, I think we should just remove the transform altogether. It's difficult to maintain and it's causing a lot more grief than help. Without the transform, the API would be: {{set this "foo" "bar"}} Which is altogether not horrible. What does everyone think? |
I strongly prefer it. 👍 |
No major disagreement here if it makes it more maintainable. It's slightly less ergonomic but at least it will be more obvious to users how it works. I'd be happy to whip up a codemod to make migration easier. |
We prefix external addon helpers or components with the addon name. We passed
ember-simple-set-helper$set this.state true
. but it threw the error from this lineember-simple-set-helper/addon/helpers/set.js
Line 8 in 6485dda
The text was updated successfully, but these errors were encountered: