DEV Community

Discussion on: Why Choose NgRx?

layzee profile image
Lars Gyrup Brink Nielsen • Edited

I didn't mean to turn this into a state management framework discussion. I prefer NgRx over Akita for the reasons mentioned in my on-topic reply, but also because Akita makes heavy use of classes and inheritance which I personally dislike. I don't think it reduces the amount of code needed to set up and use state either.

Decorators also introduce tree-shaking issues.

Thread Thread
kuncevic profile image
Aliaksei Kuncevič • Edited

I've heard of some saying decorators bad for tree-shaking but never seeing something that proves it. Is there any evidence to that?

Thread Thread
layzee profile image
Lars Gyrup Brink Nielsen

Read these Webpack docs: webpack.js.org/guides/tree-shaking...