If you continuously track when, why and what has been updated, you probably use the most popular solutions like ngrx or store, which was inspired by the famous Redux model. But today we’d like to present you a new tool to ease your state management. Akita is a state management pattern for Angular applications. Akita is built on top of RxJS, which takes the idea of multiple data stores from Flux and the immutable updates from Redux, along with the concept of streaming data, to create the Observable Data Stores model.
Akita high-level Principles
1. The Store is a single object which contains the store state and serves as the ‘single source of truth’.
2. The only way to change the state is by calling
setState() or one of the update methods based on it.
3. A component should NOT get the data from the store directly but instead, use a Query.
4. Asynchronous logic and update calls should be encapsulated in services and data services.
Read about its core concepts: