Case Reducers, builds required selectors and triggers actions.
createDucksupports to create both triggering actions (for Effects) and mutating actions. Second parameter of
Case Reducer. It has a similar style of creating a reducer which actually makes state mutations.
StoreFacadeintroduces a new mechanism how the Facade is connected with the Store.🚀
counterReduceris a variable which can be used in ngrx method
combineReducersdoc. From that point our implementation of a reducer is finished. Example below shows us basic implementation.
CounterFacadein our case) we only need to import that Facade.
ngrx-ducksgets you covered in this question. Each dispatching method provides an Action Creator.
.loadCount(5000);is a method as well. 🤯 This addition is very useful if you need to produce actions being returned by an Effect.
@ngrx-duckscan help you with actions being dispatched to an Effect. Short answer: Yes, it can.
createDuckis the only entry point you need to know to create and dispatch actions. It works with calling Effects as well. It works with Effects just like actions work with Effects in ngrx.
ngrx-ducks. An Effect filters the action type first. Let NgRx do it!😁
You see the only API you have to work with is the Ducks-API. It does not change anything in [ngrx] but automates the process dealing with actions.