Skip to content

Commit

Permalink
modify the use of ReselectMixin in example alibaba#525
Browse files Browse the repository at this point in the history
  • Loading branch information
zjuwjf committed Nov 12, 2019
1 parent bf81f09 commit 2c0bda8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example/lib/todo_list_page/state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ class ReportConnector extends ConnOp<PageState, ReportState>

@override
List<dynamic> factors(PageState state) {
return state.toDos;
return <int>[
state.toDos.where((ToDoState tds) => tds.isDone).length,
state.toDos.length
];
}

@override
Expand Down

0 comments on commit 2c0bda8

Please sign in to comment.