Skip to content

Blocks: Use async functions in the classic checkout #960

Open
@RadoslavGeorgiev

Description

@RadoslavGeorgiev

In https://github.com/Automattic/woocommerce-payments/blob/master/client/checkout/classic/index.js there are various instances where async functions should be used, now that the file is compiled/transpiled with webpack and Babel.

For some reason I could not get babel to transform async calls to Promises for backwards compatibility. We should figure out how to fix it and do it.

Example: https://github.com/Automattic/woocommerce-payments/blob/master/client/checkout/classic/index.js#L136

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions