Skip to content
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

refactor: use variable assignment and bound value instead of {{component}} helper #88

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

vscav
Copy link
Member

@vscav vscav commented Nov 3, 2023

Description

We move off the component helper to use a variable assignment and use the bound value in element.hbs.

Why?

Our goal is to migrate the addon to TypeScript. We'd like to use Glint. But the component helper will throw a linting error: The {{component}} helper can't be used directly in block form under Glint. Consider first binding the result to a variable, e.g. '{{#let (component ...) as |...|}}' and then using the bound value.

@vscav vscav added the enhancement New feature or request label Nov 3, 2023
@vscav vscav self-assigned this Nov 3, 2023
@vscav vscav force-pushed the move-off-component-helper branch from 6318cc7 to fdbb5f4 Compare November 3, 2023 13:47
@vscav vscav marked this pull request as ready for review November 3, 2023 13:51
@vscav vscav changed the title refactor: use variable assignment and bound value instead of component helper refactor: use variable assignment and bound value instead of {{component}} helper Nov 3, 2023
@vscav vscav merged commit a5ad23e into main Nov 3, 2023
12 checks passed
@michelegera michelegera deleted the move-off-component-helper branch January 16, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants