-
-
Notifications
You must be signed in to change notification settings - Fork 207
Closed
Labels
{ } State@rx-angular/state related@rx-angular/state related✍️ EnhancementNew feature or requestNew feature or request
Description
I work with people who are not so smart, and they intend to make mistakes even though I explain to them.
For example:
loadSomething() {
this.get().accounts = null;
...
}
The problem with that code, the state is changing unexpectedly and not by the rx-state flow (connect
, hold
), because of the rx-state reactivity. and because I get the actual state, I can change that because it references to the origin source.
The solution to prevent that is to make the state read-only.
I want to prevent them to do that mistake. in Redux/ngrx the state is read-only.
edbzn
Metadata
Metadata
Assignees
Labels
{ } State@rx-angular/state related@rx-angular/state related✍️ EnhancementNew feature or requestNew feature or request