Skip to content

[enhancement] Status prop #35

@ghengeveld

Description

@ghengeveld

Adding a status prop (enum) will make it easier to switch views based on the status of the Promise. We can also use this prop to create separate TypeScript interfaces for each state, where data or error are non-optional. This will greatly enhance usability for TypeScript users.

Possible states:

  • pending
  • loading
  • resolved
  • rejected

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