DEV Community

Discussion on: How NgRx Store & Effects Work: 20 LoC Re-Implementation

Collapse
spierala profile image
Florian Spier

Hi Nils, nice and minimalistic NgRx! I also did some attempts in that direction:
github.com/spierala/mini-rx-store/...
It is also a minimalistic NgRx - thats why it is called MiniRx :)
It supports many reducers, effects, (memoized) selectors and it is framework agnostic. You can have a look. At least it shows that a few lines of RxJS can do a lot :)

Collapse
n_mehlhorn profile image
Nils Mehlhorn Author • Edited on

Nice! I also thought about composing the state observable out of the action observable, however, the actual NgRx triggers effects after state transitions. That's why I'm using two separate subjects here :)

EDIT: oops, looks like this is also the case for your implementation, thanks for reaching out