Asyncredux base action

From marcglasberg/async_redux · View interactive version

Asyncredux base action is an AI agent skill from the GitHub repository marcglasberg/async_redux. Define an app-specific AsyncRedux base action for shared type-safe select helpers or dependencies.

How to use this skill

Skill file

Define an app base action

An abstract AppAction extends ReduxAction<AppState> lets concrete actions use the

app's state type without repeating it. Reuse the app's existing base class. Add typed

getters for shared dependencies and pure selectors that several actions use. Keep

feature-specific rules in feature state classes or actions.

A selector exposed by the base action should read current state each time. After

an await, a previously captured state or selector instance still points to the earlier

snapshot. Put shared error and lifecycle overrides in the base class only when they

apply to all actions. Use a mixin for behavior actions opt into.

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.