Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/app/shared/state/books.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ export const booksReducer = createReducer(
};
})
);

export function reducer(state: State | undefined, action: Action) {
return booksReducer(state, action);
}
8 changes: 6 additions & 2 deletions src/app/shared/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<State> = {};
export const reducers: ActionReducerMap<State> = {
books: fromBooks.reducer
};

export const metaReducers: MetaReducer<State>[] = [];