ember-cli / ember-cli/eslint-plugin-ember

no-assignment-of-untracked-properties-used-in-tracking-contexts causing false positives in constructor

Open
#948 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
263
Forks
214
Avg merge
30m
Merged PRs (30d)
5

Description

we have something roughly like this:

```js
export default class extends Component {
address = null;

@reads('address.foo') foo;

constructor() {
super(...arguments);
this.address = this.args.address || this.store.createRecord('address');
}
}
```

and the `no-assignment-of-untracked-properties-used-in-tracking-contexts` rule is flagging it as an issue. If I understand correctly, this shouldn't be a problem though, since the assignment is happening in the constructor, right?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.