import { DaffState } from '@daffodil/core/state'
The DaffState enumerates the vast majority of state modifications that can exist in UI applications.
enum DaffState {
Stable = DaffState.Stable,
Resolving = DaffState.Resolving,
Adding = DaffState.Adding,
Added = DaffState.Added,
Updating = DaffState.Updating,
Updated = DaffState.Updated,
Deleting = DaffState.Deleting,
Error = DaffState.Error,
}
Stable DaffState.Stable |
---|
The 'Stable' state represents when no action is being taken upon an object. |
Resolving DaffState.Resolving |
---|
The 'Resolving' state represents when there's uncertainty in the current status of a state, e.g. when we're loading something that hasn't been loaded into state before. |
Adding DaffState.Adding |
---|
The 'Adding' state represents a temporary period while an item is being added to state. |
Added DaffState.Added |
---|
The 'Added' state represents when an object was recently added to state. This typically is associated with a subsequent decay to a 'Stable' state. |
Updating DaffState.Updating |
---|
The 'Updating' state describes when an object that currently exists in state is being changed in some way. Disambiguation: This has nothing to do with immutability. |
Updated DaffState.Updated |
---|
The 'Mutated' state describes when an object has recently been modified in state. This state is typically associated with a subsequent decay into a 'Stable' state. |
Deleting DaffState.Deleting |
---|
The "Deleting" state occurs when an object is in the process of being removed from state. |
Error DaffState.Error |
---|
Indicates that the most recent operation specififc to this entity has failed. |