web-dave / ngrx-workshop

0 stars 1 forks source link

Refactor Reducer #48

Open web-dave opened 2 years ago

web-dave commented 2 years ago

Refactor

web-dave commented 2 years ago

books.reducer.ts


export const booksReducer = createReducer(
  initialState,
  on(LoadBooks, (state, { books }) => bookAdapter.setAll(books, state))
);