DEV Community

Discussion on: Status instead of isLoading boolean?

Collapse
 
mrdulin profile image
official_dulin

If you don't want to add extra words - "idle"

Just consistent with the state of the JavaScript Promise.

A Promise is in one of these states:

pending: initial state, neither fulfilled nor rejected.
fulfilled: meaning that the operation was completed successfully.
rejected: meaning that the operation failed.