asyncredux-async-actions
Installation
SKILL.md
AsyncRedux Async Actions
Basic Async Action Structure
An action becomes asynchronous when its reduce() method returns Future<AppState?>
instead of AppState?. Use this for database access, API calls, file operations, or any
work requiring await.
class FetchUser extends ReduxAction<AppState> {
Future<AppState?> reduce() async {
final user = await api.fetchUser();
return state.copy(user: user);
}
}