Making State Management Domain Agnostic with @derxjs
Ads
Questions
- First tell us a little about yourself and your background.
- Senior Engineer and Engineering Manager at Nrwl
- Father of 6, Grandfather of 2
- Enthusiast for writing/podcasting/oss/other forms of communication (tech or otherwise)
- Co-founder DeRose Brothers Real Estate
- What was your motivation to create @derxjs?
- I'm extremely "long" on RxJS - in particular in its ability to elegantly compose domain-agnostic state management code.
- derxjs is a way of packaging that power in a way that separates "state" concerns with "view" concerns (the
DeRxJSViewModel
interface) - derxjs/reducer is our first package for assisting folks in writing domain agnostic state management (that harnesses the power of RxJS without actually writing any)
- derxjs/react is our first package on the other side of the
DeRxJSViewModel
interface - designed to help folks leverage RxJS in their react projects (again, without actually writing any RxJS code)
- How does this differ from rxjs or Redux?
- This is a 'framework' (may be generous) for using RxJS - a 'spiritual successor' to NgRx
- derxjs/reducer should feel extremely familiar to anyone that's written NgRx or Redux code.
- Exciting things in the pipes from the "framework": declarative testing tools && ai powered code-generation
Additional Links
- NPM
@derxjs/viewmodel
- https://www.npmjs.com/package/@derxjs/view-model - https://www.npmjs.com/package/@derxjs/react
- https://www.npmjs.com/package/@derxjs/reducer
- GitHub - https://github.com/ZackDeRose/derxjs
- Part1 - https://dev.to/zackderose/the-derxjsviewmodel-pattern-the-e-mc-2-of-state-management-part-1-3dka
- Part2 - https://dev.to/zackderose/the-derxjsviewmodel-pattern-the-emc2-of-state-management-part-2-2i73