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