crybapp / crybapp/web

Change asyncData Functions to promise for more concise syntax.

Open
#104 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.