More redux work in fires page

This commit is contained in:
vjrj 2018-06-28 10:42:59 +02:00
parent 5d947f9577
commit 7dddf03e32
13 changed files with 210 additions and 54 deletions

View file

@ -5,9 +5,14 @@ import 'loadedReducer.dart';
import 'loadingReducer.dart';
import 'userReducer.dart';
import 'yourLocationsReducer.dart';
import 'actions.dart';
import 'appReducer.dart';
// We create the State reducer by combining many smaller reducers into one!
AppState appStateReducer(AppState state, action) {
AppState appStateReducer(AppState prevState, action) {
var state = prevState;
if (action is AppActions)
state = appReducer(prevState, action);
return AppState(
yourLocations: yourLocationsReducer(state.yourLocations, action),
user: userReducer(state.user, action),