refactored requestCacheReducer

This commit is contained in:
Art Lowel
2017-04-12 18:03:02 +02:00
parent 6212f5d114
commit 8e0d2bac9b
47 changed files with 1341 additions and 1309 deletions

View File

@@ -1,12 +1,18 @@
import { combineReducers } from "@ngrx/store";
import { CacheState, cacheReducer } from "./cache/cache.reducers";
import { IndexState, indexReducer } from "./index/index.reducers";
import { DataState, dataReducer } from "./data/data.reducers";
export interface CoreState {
cache: CacheState
cache: CacheState,
index: IndexState,
data: DataState
}
export const reducers = {
cache: cacheReducer
cache: cacheReducer,
index: indexReducer,
data: dataReducer
};
export function coreReducer(state: any, action: any) {