2

Trying my hand on Angular with Ngrx. Wish me luck.

Comments
  • 1
  • 0
    Forgo ngrx and you're golden. Use raw rxjs instead. If you have to use a statemachine crutch, use Akita.
  • 0
    @SortOfTested how is it better than ngrx
  • 1
    @anup-dhabarde
    I don't qualify "better." I focus on appropriateness.

    I don't support Redux, regardless of the platform. You bake your application's entire state logic, regardless of level, into a single construct, and then give your components awareness of those same functions and state abstraction. Tight coupling is poor design, defeats chunking by creating shared dependencies, and obscures update behavior.

    With RxJs, there's no need for an additional dependency. You'll remain in-paradigm for Angular (RFP is the default, performance is dependent on it). You'll learn immutability in process while enjoying the benefits of an application that isn't drowning in memory pressure and unused data. You'll also increase reusability while maintaining a small package size, and will be able to link your state management and tombstoning to the component lifecycle.

    tl;dr RxJs gives you control and is fundamental to Angular to the point where not knowing it means you don't know Angular.
  • 0
    @SortOfTested i understand rxjs is the main part of angular. I meant to ask which one should i use akita, or ngrx. If i have to use state management.
  • 1
    @anup-dhabarde
    Akita avoids the tight coupling of resolvers/reducers. It also has a more sane query model.

    I still say you should use rxjs for state management.
  • 0
    @SortOfTested I'll try that. Thanks for the suggestion.
  • 0
    @SortOfTested how the hell you know so much about everything. I dont understand
Add Comment