import { storeFreeze } from 'ngrx-store-freeze' ; import { enableBatching } from 'redux-batched-actions' ; import { ingredientsReducer } from 'app/shared/states/ingredients/ingredients.reducer' ; import { ordersReducer } from 'app/shared/states/orders/orders.reducer' ; import { pizzasCategoriesReducer } from 'app/shared/states/pizzas-categories/pizzas-categories.reducer' ; import { pizzasReducer } from 'app/shared/states/pizzas/pizzas.reducer' ; import { uiReducer } from 'app/shared/states/ui/ui.reducer' ; import { usersReducer } from 'app/shared/states/users/users.reducer' ; import { environment } from 'environments/environment' ; export const reducers = { ui : uiReducer , pizzas : pizzasReducer , pizzasCategories : pizzasCategoriesReducer , users : usersReducer , orders : ordersReducer , ingredients : ingredientsReducer , } ; const metaReducersDev = [ storeFreeze , enableBatching ] ; const metaReducersProd = [ enableBatching ] ; export const metaReducers = environment . production ? metaReducersProd : metaReducersDev ;