asyncredux-wait-fail-succeed
Installation
SKILL.md
AsyncRedux Wait, Fail, Succeed
AsyncRedux provides context extension methods to track async action states: waiting (in progress), failed (error), and succeeded (complete). These are essential for showing spinners, error messages, and success states in the UI.
Four Core Methods
| Method | Returns | Purpose |
|---|---|---|
isWaiting(ActionType) |
bool |
True if the action is currently running |
isFailed(ActionType) |
bool |
True if the action recently failed |
exceptionFor(ActionType) |
UserException? |
The exception from a failed action |
clearExceptionFor(ActionType) |
void |
Manually clears stored exception |
Showing a Loading Spinner
Use isWaiting() to display a spinner while an action runs: