Rethinking State in Angular Applications - Alex Okrushko

preview_player
Показать описание
Angular is an opinionated framework. But is it really?

Yes, when it comes to choosing Form or Router - it has it all. Even the fantastic CLI!

But what about the State? Managing and synchronizing it is one of the most complex tasks that developers have to solve, and it's not a straight-forward one - it frequently bites us as we develop our applications.

"What is the state?", "Types of it?" and "How to work with it?" is not taught much and when Angular developers start working on the real-world applications, there are mostly on their own.

In this talk I'd like to start with the state types (to bring us all on the same page), then peak into push-based Services, and finally go over @ngrx/store and @ngrx/component-store - the latest addition to the NgRx family of libraries.

We'll see how these could be combined together to make a complete and clear picture for any size or type of the Angular applications.
Рекомендации по теме
Комментарии
Автор

25:00 cleared a lot of concepts of rx i couldn't understand from online courses. Thank you for that.

g-luu
Автор

Great talk about how to think about state, and state management.

davidtoska
Автор

Too Deep and informative talk, Rxjs plays the great role in state management. 💯🚀 however Angular is ❤️

Developerorium
Автор

Carefully created presentation ! I would like to see more clearly what I benefit when I use component store. To my opinion all what component store captures are patterns you as a reactive angular developer anyway use: push state instead of pulling state, handling concurrency with the right operators: concatMap instead of mergeMapö.... To my opinion it would better be to give the developer the knowledge of the pattern he best uses than a library which everybody just uses without thinking what is going on behind the curtain.
Show me the Shopping cart sample realized with pure rxjs and the necessary patterns to avoid possible errors!
Compare the pure rxjs sample with the component store sample and make a list of pros and cons!
I do not just want to ue another library just for the sake of the library!

hansschenker