Skip to content

Commit 4e5c6fa

Browse files
committed
fix type in selectMany
1 parent e4b2bc3 commit 4e5c6fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/selectors.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
499499
);
500500
}
501501

502-
final selectSubStats =
502+
final selectSubStates =
503503
(State state) => selectors.map((s) => s(state)).toList(growable: false);
504504

505505
final eqs = subStateEquals
@@ -510,10 +510,10 @@ extension SelectorsExtension<Action, State> on RxReduxStore<Action, State> {
510510
final subStatesEquals = (List<SubState> previous, List<SubState> next) =>
511511
indices.every((i) => eqs[i](previous[i], next[i]));
512512

513-
final currentSubStates = selectSubStats(state);
513+
final currentSubStates = selectSubStates(state);
514514

515515
return stateStream
516-
.map(selectSubStats)
516+
.map(selectSubStates)
517517
.distinctValue(currentSubStates, equals: subStatesEquals)
518518
.map(projector)
519519
.distinctValue(projector(currentSubStates), equals: equals);

0 commit comments

Comments
 (0)