Asyncredux abort dispatch

From marcglasberg/async_redux · View interactive version

Asyncredux abort dispatch is an AI agent skill from the GitHub repository marcglasberg/async_redux. Silently skip a dispatch with AsyncRedux abortDispatch when an action's precondition already rules it out.

How to use this skill

Skill file

Abort a dispatch

Use abortDispatch() for a synchronous guard when the action should be skipped

silently. Returning true bypasses before, reduce, and after. Keep the predicate

free of side effects. If the action can run but has nothing to change, return null

from its reducer. If the user should be told why it cannot run, use a

UserException in before. Use NonReentrant for duplicate in-flight actions.

When an action or mixin already supplies an abort guard, preserve it by calling

super.abortDispatch(). An asynchronous guard belongs in before. An

AbortDispatchException there aborts silently, while lifecycle cleanup still runs.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.