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

Relax LWC compiler @wire restrictions #1715

Open
pmdartus opened this issue Feb 10, 2020 · 1 comment
Open

Relax LWC compiler @wire restrictions #1715

pmdartus opened this issue Feb 10, 2020 · 1 comment

Comments

@pmdartus
Copy link
Member

Description

The LWC compiler currently enforces the following restrictions on the @wire decorator expression:

  • wire adapters have to be imported from another module
  • wire adapters has to be an identifier
  • wire adapter can't be a computed expression

Those restrictions are semantic and doesn't break the compilation output. Those restrictions should be moved to the linter.

@pmdartus pmdartus changed the title Relax LWC compiler wire restrictions Relax LWC compiler @wire restrictions Feb 10, 2020
@git2gus
Copy link

git2gus bot commented Feb 10, 2020

This issue has been linked to a new work item: W-7207010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant