re: What Do You Think About Immutable Data? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: In my experience, immutable data often reduces the amount of functions with side effects. Side effects make testing hard, the code hard to underst...
 
 

Indeed I didn't, thanks!
It even seems to be supported by typescript as the type definition returns a ReadOnly (stackoverflow.com/questions/486298...).

Makes me wonder why libraries like ngrx don't take advantage of this.

I will definitely try to use that one.

code of conduct - report abuse