Comment on page
NgRx Ducks already took a long journey. The API has changed a lot in the past, because we want to provide a clean way to work with State Management.
Based on our experiences with our customers' projects, we have improved NgRx Ducks step-by-step. Depending on your Knowledge, your style & your needs, NgRx Ducks can deliver different API-flavours.
The following video demonstrates how a NgRx project can be refactored to NgRx Ducks.
Refactor vanilla NgRx (YouTube)
This library acts as a thin layer on top of NgRx. It automatically creates action creators and reducer functions for you. Furthermore, you get a service that you can use in your components. This Service provides a strictly typed API allowing both dispatching actions and selecting data from the Store.
Since NgRx Ducks only depends on
dispatchand the fact that the Store exposes an Observable it is pretty safe that NgRx Ducks remains compatible with NgRx even if a release contains breaking changes. 🙏