More redux work in fires page
This commit is contained in:
parent
5d947f9577
commit
7dddf03e32
13 changed files with 210 additions and 54 deletions
10
lib/redux/appReducer.dart
Normal file
10
lib/redux/appReducer.dart
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue