asyncredux-action-status

Inspect AsyncRedux ActionStatus after dispatch to determine completion or failure.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/pro100andrey/dar --skill asyncredux-action-status-pro100andrey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: asyncredux-action-status
Source: https://github.com/pro100andrey/dar/tree/main/.claude/skills/asyncredux-action-status
Command: npx skills add https://github.com/pro100andrey/dar --skill asyncredux-action-status-pro100andrey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Checks an AsyncRedux (Flutter) action's completion status using ActionStatus right after the dispatch returns. Use only when you need to know whether an action completed, whether it failed with an error, what error it produced, or how to navigate based on success or failure.

Core Features & Use Cases

  • Exposes ActionStatus properties like isCompleted, isCompletedOk, isCompletedFailed, originalError, and wrappedError to inform UI and tests.
  • Tracks action lifecycle booleans (hasFinishedMethodBefore, hasFinishedMethodReduce, hasFinishedMethodAfter) to aid debugging.
  • Enables conditional navigation and error handling in Flutter apps by evaluating status after dispatchAndWait.

Quick Start

Dispatch an action and inspect the status after dispatch to branch on isCompletedOk for navigation or on isCompletedFailed to show errors.

Frequently Asked Questions about asyncredux-action-status

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if an AsyncRedux action completed successfully in Flutter?

Dispatch an action and inspect the ActionStatus immediately after it returns. Use isCompletedOk to confirm the AsyncRedux action completed successfully without errors, allowing your Flutter UI to proceed with navigation.

How does ActionStatus work with dispatchAndWait for error handling?

ActionStatus works with dispatchAndWait by exposing isCompletedFailed and wrappedError after the dispatch returns. This allows you to evaluate error states and apply wrapError transformations to handle failures in your Flutter app.

Can I use AsyncRedux action lifecycle booleans to debug failed actions?

Yes, you can use AsyncRedux action lifecycle booleans like hasFinishedMethodBefore, hasFinishedMethodReduce, and hasFinishedMethodAfter to track action progress and debug failures during the action lifecycle.

What's the best way to drive Flutter navigation based on AsyncRedux action outcomes?

The best way to drive navigation is to evaluate ActionStatus properties like isCompletedOk or isCompletedFailed after calling dispatchAndWait. This allows your Flutter app to conditionally navigate upon successful action completion or display errors on failure.

Does this approach expose both originalError and wrappedError from failed actions?

Yes, evaluating the ActionStatus exposes both originalError and wrappedError from failed AsyncRedux actions. This supports wrapError transformations, allowing you to inspect the raw error and the modified error presented to the UI.