Pattern: Use of this
in asyncData/fetch
Issue: -
This rule is for preventing using this
in asyncData/fetch
.
Examples of incorrect code for this rule:
export default {
...foo,
async asyncData() {
if (this.$route.path === 'foo') {
}
}
}
Examples of correct code for this rule:
export default {
...foo,
async asyncData() {
// no this
}
}