asyncredux-nonreentrant-mixin
Installation
SKILL.md
NonReentrant Mixin
The NonReentrant mixin prevents concurrent execution of the same action type. When an action instance is already running, new dispatches of that same action are silently aborted.
Basic Usage
Add the NonReentrant mixin to any action that should not run concurrently:
class SaveAction extends AppAction with NonReentrant {
Future<AppState?> reduce() async {
await http.put('http://myapi.com/save', body: 'data');
return null;
}
}