Skip to content

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

Open
@Soliel

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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