ember-cli / ember-cli/eslint-plugin-ember
New rule request: no async in getters
Open
enhancement
New Rule
- Dominant language
- JavaScript
- Stars
- 263
- Forks
- 214
- Avg merge
- 30m
- Merged PRs (30d)
- 5
Description
I saw quite a lot of confusion on folks, migrating from "classic" ember.
And I found this pattern:
```js
@computed('foo', function() {
return this.store.query('foo', this.foo);
});
@computed
get foo() {
// async/await/fetch/then
return this.store.query('foo', this.foo);
}
```
in Octane world, likely it should be independent action and tracked property, wondering, could we enforce it?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.