asyncredux-before-after
CommunityMaster action lifecycles with before/after hooks.
Authormarcglasberg
Version1.0.0
Installs0
System Documentation
What problem does it solve?
AsyncRedux actions often need precondition checks, deterministic side effects, and reliable cleanup. This skill provides a structured approach to coordinating before, reduce, and after methods to ensure safe, predictable execution.
Core Features & Use Cases
- Before and after hooks support synchronous or asynchronous code for precondition checks and cleanup
- Guarantees that after() runs even if before() or reduce() fail, enabling safe resource management
- Supports modal barriers, loading indicators, and cleanup patterns through recommended usage
- Works with common patterns like mixins to compose lifecycle behaviors across actions
Quick Start
Define a ReduxAction with before() to validate preconditions and show a loading indicator, implement reduce() for the main work, and override after() to hide the indicator and perform cleanup.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: asyncredux-before-after Download link: https://github.com/marcglasberg/async_redux/archive/main.zip#asyncredux-before-after Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.