asyncredux-abort-dispatch
Installation
SKILL.md
AsyncRedux Aborting the Dispatch
What is abortDispatch()?
The abortDispatch() method is an optional method on ReduxAction that lets you
conditionally prevent an action from executing. When this method returns true, the
entire action is skipped—before(), reduce(), and after() will NOT run, and state
remains unchanged.
class MyAction extends ReduxAction<AppState> {
bool abortDispatch() {
// Return true to abort, false to proceed
return someCondition;
}