12 lines
310 B
Dart
12 lines
310 B
Dart
import 'package:redux/redux.dart';
|
|
import '../../redux/product/product_actions.dart';
|
|
|
|
final loadingReducer = combineReducers<bool>([
|
|
TypedReducer<bool, ProductsLoadedAction>(_setLoaded),
|
|
TypedReducer<bool, ProductsNotLoadedAction>(_setLoaded),
|
|
]);
|
|
|
|
bool _setLoaded(bool state, action) {
|
|
return false;
|
|
}
|