asyncredux-nonreentrant-mixin
CommunityPrevent concurrent action execution with a mixin.
Authormarcglasberg
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The NonReentrant mixin prevents concurrent execution of the same action type by aborting new dispatches when one is already running, eliminating duplicate API calls and race conditions.
Core Features & Use Cases
- NonReentrant behavior: Prevents overlapping executions of the same action type by aborting dispatches while an instance is running.
- Customization: Override nonReentrantKeyParams() to allow different parameters to run concurrently and override computeNonReentrantKey() to coordinate across action types.
- Practical use cases: Use for form submissions, long-running API calls, and other operations where race conditions could impact data integrity.
Quick Start
Add the NonReentrant mixin to your action class and dispatch as usual. If the action is already running, subsequent dispatches are silently aborted.
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-nonreentrant-mixin Download link: https://github.com/marcglasberg/async_redux/archive/main.zip#asyncredux-nonreentrant-mixin 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.