We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the regular compiler, we disallow various forms of invalid decorator usage. The following validation should be added to the SSR compiler:
api
track
wire
@foo prop
import { api as API } from "lwc"
const api = () => {}; ... @api prop
import { api } from "lwc"; ... api()
const api = () => {}; api();
The text was updated successfully, but these errors were encountered:
This issue has been linked to a new work item: W-17264833
Sorry, something went wrong.
No branches or pull requests
In the regular compiler, we disallow various forms of invalid decorator usage. The following validation should be added to the SSR compiler:
api
,track
, andwire
can be used as decorators.@foo prop
is invalid.import { api as API } from "lwc"
is invalid.api
,wire
, ortrack
cannot be used as decorators.const api = () => {}; ... @api prop
is invalid.import { api } from "lwc"; ... api()
is invalid.api
,wire
, ortrack
can be used as regular functions.const api = () => {}; api();
is valid.The text was updated successfully, but these errors were encountered: