You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/basics/reducers.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
Reducers specify how the application's state changes in response to actions sent to the store. Remember that actions only describe the fact that something happened, but don't describe how the application's state changes.
6
6
7
-
## Writing a reducer
7
+
## Writing a reducer
8
8
9
9
Say I'm working on the counter app discussed in the [Actions](actions.md) section. This means I've defined my apps actions as:
10
10
@@ -20,9 +20,9 @@ abstract class AppActions extends ReduxActions {
20
20
and my state object as so:
21
21
22
22
```dart
23
-
abstract class Counter implements Built<Counter, CounterBuilder> {
24
-
Counter._();
25
-
factory Counter() => new _$Counter._(count: 0);
23
+
abstract class App implements Built<App, AppBuilder> {
0 commit comments