diff --git a/src/app/shared/state/books.reducer.ts b/src/app/shared/state/books.reducer.ts index 426fbbb..fda8bdc 100644 --- a/src/app/shared/state/books.reducer.ts +++ b/src/app/shared/state/books.reducer.ts @@ -35,3 +35,7 @@ export const booksReducer = createReducer( }; }) ); + +export function reducer(state: State | undefined, action: Action) { + return booksReducer(state, action); +} diff --git a/src/app/shared/state/index.ts b/src/app/shared/state/index.ts index 78e2fee..3b68c8d 100644 --- a/src/app/shared/state/index.ts +++ b/src/app/shared/state/index.ts @@ -2,8 +2,12 @@ import { ActionReducerMap, createSelector, MetaReducer } from "@ngrx/store"; import * as fromAuth from "./auth.reducer"; import * as fromBooks from "./books.reducer"; -export interface State {} +export interface State { + books: fromBooks.State; +} -export const reducers: ActionReducerMap = {}; +export const reducers: ActionReducerMap = { + books: fromBooks.reducer +}; export const metaReducers: MetaReducer[] = [];