todos-contra-el-fuego-mobile/lib/redux/appReducer.dart
2018-06-28 10:42:59 +02:00

10 lines
No EOL
279 B
Dart

import 'actions.dart';
import '../models/user.dart';
import '../models/appState.dart';
AppState appReducer(AppState state, action) {
if (action is FetchYourLocationsSucceededAction) {
return state.copyWith(yourLocations: action.fetchedYourLocations);
}
return state;
}