Skip to content

Commit

Permalink
Doc improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcglasberg committed Apr 2, 2024
1 parent 2c4c2d8 commit b4c5bd3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ an <a href="https://github.com/marcglasberg/SameAppDifferentTech/blob/main/Mobil
Async Redux App Example Repository</a> in GitHub for a full-fledged example with a complete app
showcasing the fundamentals and best practices described in the AsyncRedux README.md file._

# 22.4.8
# 22.4.9

* For those who use `flutter_hooks`, you can now use the
new https://pub.dev/packages/flutter_hooks_async_redux package
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,10 @@ wait for an action to finish:
```dart
class LoadTextAndIncrement extends Action {
Future<String> reduce() async {
var text = await dispatchAndWait(LoadText());
dispatch(Increment());
return text;
}
}
Future<AppState> reduce() async {
await dispatchAndWait(LoadText());
return state.copy(count: state.count + 1);
}}
```

You can add **mixins** to your actions, to accomplish common tasks:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: async_redux
description: Redux state management. An optimized Redux version, which is very easy to learn and use, yet powerful and tailored for Flutter. It allows both sync and async reducers.
version: 22.4.8
version: 22.4.9
# author: Marcelo Glasberg <[email protected]>
homepage: https://github.com/marcglasberg/async_redux
topics:
Expand Down

0 comments on commit b4c5bd3

Please sign in to comment.