Change asyncData Functions to promise for more concise syntax.
Open
enhancement
good first issue
- Dominant language
- Vue
- Stars
- 44
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
I think this function is better as a promise.
```suggestion
asyncData = (context) => new Promise((resolve, reject) => {
context.$axios.$get('auth/discord/redirect')
.then(result => resolve(result))
.catch(reason => reject(reason))
})
```
_Originally posted by @Soliel in https://github.com/crybapp/web/diffs_
Contributor guide
Assessment
This issue has not been assessed yet.