Skip to content

await...then shorthand #957

@Rich-Harris

Description

@Rich-Harris

Follow-up to #952. This...

{{#await promise then foo}}
  <p>{{foo}}</p>
{{/await}}

...would be a nice shorthand for this:

{{#await promise}}
  <!-- no need to show a pending state -->
{{then foo}}
  <p>{{foo}}</p>
{{catch error}}
  <!-- promise is guaranteed to fulfil -->
{{/await}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions