Skip to content

Change asyncData Functions to promise for more concise syntax. #104

@Soliel

Description

@Soliel

I think this function is better as a promise.

        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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions