Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 825 Bytes

no-tracked-properties-from-args.md

File metadata and controls

29 lines (19 loc) · 825 Bytes

ember/no-tracked-properties-from-args

Disallow creation of @tracked properties from args.

Rule Details

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

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;
}

References