Disallow creation of @tracked properties from args.
This rule disallows the creation of @tracked properties with values from this.args
. The @tracked property will not be updated when the args change, which is almost never what you want.
Examples of incorrect code for this rule:
@tracked someValue = this.args.someValue;
Examples of correct code for this rule:
get someValue() {
return this.args.someValue;
}
- Glimmer Components - args guide
- tracked guide