-
Notifications
You must be signed in to change notification settings - Fork 142
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
Contextual modifiers and helpers not supported? #1018
Comments
Yes, we need to make them work almost exactly the same as the component helper, just resolving to slightly different paths. Along with this we also still need a staticModifiers mode. None of it is very different from staticHelpers and staticComponents. |
Thanks for confirming!
Yup, I raised this already here: #603 🙂 Maybe I can find some time for this, but no promises... |
Looks like this has been added now so we can close this now? |
AFAIK this hasn't been implemented yet? The PR which is referenced here only added the I can give it a try this weekend if someone else hasn't by then. |
I think you are right, so I reopened this issue! |
Woops my bad 🤦🏾♂️ sorry team |
@ef4 Forgive my ignorance but do we also need to add |
I think "no", because I'm pretty sure the newly added helper-helper and modifier-helper never accepted dynamic values. They only accept string literals. So it's not possible to write a component that accepts a helper as an argument "the wrong way", by accepting the string name of the helper, rather than the helper itself. |
As of the 1.4.0 release both these helpers should now be fully supported. 🎉 |
Ember 3.27 introduced the
(modifier)
and(helper)
helper counterparts to(component)
. Using(modifier)
in an addon to yield a contextual modifier works in non-Embroider and the "safe" scenario, but fails in "optimized" mode withMissing helper: modifier
.It seems this new feature is not properly supported yet? I guess we need similar special treatment for these as we have for the component helper?
The text was updated successfully, but these errors were encountered: