question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Contextual modifiers and helpers not supported?

See original GitHub issue

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 with Missing 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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
simonihmigcommented, Dec 9, 2021

I think you are right, so I reopened this issue!

1reaction
Windviscommented, Mar 7, 2022

As of the 1.4.0 release both these helpers should now be fully supported. 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contextual Helpers and Modifiers (a.k.a. "first-class helpers ...
The new helper and modifier helpers need be be added to the API docs. We should consider cross-linking between the helper , modifier...
Read more >
[Bug] The `on` modifier does not work with the `modifier` helper
It seems that all helpers and modifiers that come from Glimmer don't work with the contextual helpers. The error is thrown from the...
Read more >
EmberJS on Twitter: "Contextual helpers and modifiers extend ...
Contextual helpers and modifiers extend Ember's existing API for passing or yielding components with closed-over arguments. They allow you to ...
Read more >
Conditional Modifiers and Helpers in Ember - Chris Krycho
Ember.js 3.27 introduced the helper and modifier helpers to complement the component helper, allowing for conditional application of helpers ...
Read more >
Difference between modifier and helper in Ember JS
A helper is "just a function" that can be invoked from templates.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found