mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 05:23:06 +00:00
refactored requestCacheReducer
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user