robodux | platform | |
---|---|---|
2 | 64 | |
100 | 7,893 | |
- | 0.3% | |
4.1 | 9.1 | |
7 months ago | 6 days ago | |
TypeScript | TypeScript | |
MIT License | 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.
robodux
-
Ask HN: What is your favorite front end state management solution?
Like most systems, it’s all about how it is setup. I’ve learned over 5-7 years how to organize FE (with redux) code so it is readable. Also inheriting a system can be quite the burden and I could see how it was be difficult to grok.
I also heavily leverage https://github.com/neurosnap/robodux to treat redux as a database.
At the end of the day, redux is an event emitter (pub/sub) with a single object that stores all of your state that multiple components need to reuse.
- robodux: a powerful middleware and caching library for redux side-effects
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.
What are some alternatives?
wrmhole
ngrx-data-pagination
valtio - 💊 Valtio makes proxy-state simple for React and Vanilla
rtk-query - Data fetching and caching addon for Redux Toolkit
saga-query - Data synchronization using a middleware system for front-end apps
rx-query
effector-react - Business logic with ease ☄️
ngrx-forms - Enhance your forms in Angular applications with the power of ngrx
htmx - </> htmx - high power tools for HTML
ngrx-immer - Immer wrappers around NgRx methods createReducer, on, and ComponentStore
jotai - 👻 Primitive and flexible state management for React
redux-devtools-extension - Redux DevTools extension.