Open mrdimidium opened 4 years ago
Do we have time travel in NgRx like we have in Redux?
Yeah. For example, it uses NgRx store devtools.
In general, ngrx is a "redux-like" library, with approximately the same functionality but additional reactive wrappers.
Do you have any additional requirements for the store?
Nope. Now we need to copy-paste tests and time-travel to NgRx. We can create something like logux/ngrx
.
Yes, logux/ngrx
looks good.
We also need to talk about technology. For angular tools, the home language is TS — angular is almost not used in vanilla JS. The code base of angular libraries is traditionally developed on TS — including angular
, ngrx
, angular-material
, nx
, protractor
, compodoc
and other.
Do you think we should follow this rule, or develop on JS with typings?
I do not like any compilers because:
For the logux/ngrx
which will be a tiny wrap, I think JS + .d.ts
is fine.
Okay. Then what should we do next?
Do you want to start the project and maintain it later?
Start the project in your GitHub and when I will be ready for 0.1
we will move it to logux/
org.
Well. I created it, come in: nikolay-govorov/logux-ngrx. What is required for v0.1
release?
Step 1:
Step 2:
logux
orglogux.io
logux.io
I understand correctly that now we just copy the test suite for CRDT between @logux/redux
/@logux/vuex
and do the same for the new driver?
Logux Redux doesn't have CRDT support. Only time travel (which is useful for CRDT, not CRDT will be on the level above the Logux Redux).
Yeap, you need to copy Logux Redux code.
Logux State is a better option than supporting many state managers.
We may need Angular integration in Logux State.
Do I understand correctly that Logux State is already a self-sufficient state manager, and it does not need Redux/Vuex/NgRx to work?
Yeap. It just needs bindings like we have in logux/state/react
or logux/state/vue
.
Based on the this tweet.
I need support for Angular projects. You have already taken the first step by creating bindings for TypeScript.
Unlike React and Vue, the Angular ecosystem does not have a recognized state library. However, we can say that the most popular solution is NgRx. A few numbers:
To start using logux in angular projects, you need at least:
It would also be incredibly cool to have integration with Angular Augury (SSR platform) and
NativeScript
(mobile apps, like RN).--
What do you think about this?