platform
mini-rx-store
platform | mini-rx-store | |
---|---|---|
64 | 10 | |
7,899 | 165 | |
0.4% | - | |
9.1 | 8.7 | |
4 days ago | 4 days ago | |
TypeScript | TypeScript | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
platform
-
Simplifying Angular State Management Using NgRx SignalState
NgRx is the standard library for state management in Angular applications. With NgRx v14, many of the complex APIs following the Redux pattern have been greatly simplified. For example, ActionGroups make it easier to define new actions. However, the use of the Redux pattern is by no means easy and discourages many developers.
-
Here's how NgRx selectors actually work internally
I ran into this question question on the NgRx GitHub discussion threads which asked:
-
Using Angular Signals for Global State
In an application that I’m working on, before Angular 16 shipped, I was using a custom StoreService to hold global application state. I’ve tried libraries like NgRx and Akita to manage global state, but found them to be way too heavy-handed for what I wanted (not saying ANYTHING negative towards these libraries; not every tool is right for every job, and the authors of these libraries would probably be the first to tell you that). This custom StoreService was created using RxJS, and looked like this:
-
Episode 23/27: NgRx 16.1 & Signal Store, Jest, Cypress, Nx
RFC Signal Store
-
Fullstack Angular with Analog 🚀
If you liked this, click the ❤️ so other people will see it. Follow me on Twitter and subscribe to my YouTube Channel for content on Angular, Analog, NgRx, and more!
-
A better architecture for your Angular projects
The store can be implemented using any technology. You can either use a library like NgRx or NGXS. Another solution is to create your own store using a BehaviorSubject.
-
Navigation ID is not equal to the current router navigation id error
I'm using @ngrx/router-store in my Angularv5 app and I recently started running into a an error: Navigation ID X is not equal to the current navigation id Y (where X and Y are integers).
-
Share mistakes you did with Angular and you want other devs not do it again
Not agree, NgRx and redux pattern helps a lot to keep the code clean, I do agree that maybe NgRx add many files and could become in boilperplate for simple staff, I think with signals this approach will change, there is already an open discussion about this https://github.com/ngrx/platform/discussions/3796
-
How can I stop API requests from blocking rendering?
For code sample and how to architect these things : https://ngrx.io
-
From NgRx ComponentStore to SignalStore: the key takeaways from my demo project
The NgRx team and Marko Stanimirović opened a new RFC (Request for Comments) for a signal-based state management solution, SignalStore. It has a similar approach to @ngrx/component-store. The initial prototype with the API documentation is available in the NgRx SignalStore playground repo.
mini-rx-store
-
10 Reasons for MiniRx Signal Store
Framework-agnostic code: Although MiniRx Signal Store is an Angular library, your state management code is almost framework-agnostic. Signals are an internal implementation detail of the Signal Store. Therefore, you can easily refactor your state management layer to the original (RxJS-based) MiniRx Store and use it in whatever framework you want (e.g. Svelte).
-
Introducing MiniRx Signal Store
The MiniRx Signal Store API is documented in the README.
-
MiniRx Signal Store for Angular - API Preview
MiniRx Store
-
MiniRx Signal Store RFC needs your feedback
It is based on the same great concept of the original MiniRx Store which was based on RxJS (see the docs here: https://mini-rx.io/).
-
MiniRx Feature Store vs. NgRx Component Store vs. Akita
See the FeatureStore source here.
- Svelte Demo of MiniRx - The RxJS Redux Store
-
Introducing MiniRx - Scalable reactive state management
NgRx and the Redux pattern are great for managing state at a large scale. However, almost every application contains also features that require only a simple form of state management. Then the Redux pattern with its actions and reducers quickly feels like overkill. I wanted a state management solution which looks and feels a lot like NgRx, but it has to support simple state managment too. It was time to create MiniRx Store:
What are some alternatives?
ngrx-data-pagination
pinia-undo - 🍍 Undo/Redo plugin for pinia.
rtk-query - Data fetching and caching addon for Redux Toolkit
Svelte - Cybernetically enhanced web apps
rx-query
diffx - A state management library for React, Vue.js, Svelte, Angular and vanilla javascript
ngrx-forms - Enhance your forms in Angular applications with the power of ngrx
akita - 🚀 State Management Tailored-Made for JS Applications
ngrx-immer - Immer wrappers around NgRx methods createReducer, on, and ComponentStore
mini-rx-comparison - Compare MiniRx FeatureStore with NgRx ComponentStore and Akita Store
redux-devtools-extension - Redux DevTools extension.
mini-rx-svelte-demo - MiniRx Store Demo (Svelte): See the Redux Api and the Feature Stores in Action