12 lines
444 B
Dart
12 lines
444 B
Dart
import 'package:invoiceninja/redux/app/app_state.dart';
|
|
import 'package:invoiceninja/redux/app/loading_reducer.dart';
|
|
import 'package:invoiceninja/redux/product/product_reducer.dart';
|
|
|
|
// We create the State reducer by combining many smaller reducers into one!
|
|
AppState appReducer(AppState state, action) {
|
|
return AppState(
|
|
isLoading: loadingReducer(state.isLoading, action),
|
|
products: productsReducer(state.products, action),
|
|
);
|
|
}
|