Learn NgRx Component Store - Local Store With NgRx

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2025

ความคิดเห็น • 19

  • @MonsterlessonsAcademy
    @MonsterlessonsAcademy  4 หลายเดือนก่อน

    WATCH NEXT: Angular with NgRx - Building Angular Project From Scratch - th-cam.com/video/vcfZ0EQpYTA/w-d-xo.htmlsi=BptT7eqgflHIoQiQ

  • @returncode0000
    @returncode0000 ปีที่แล้ว +3

    Your videos always help me a lot because you always provide very good explanations for difficult topics, thanks!

  • @Jerokun
    @Jerokun ปีที่แล้ว +1

    Straight to the point with a clean solution. If you are reading up on Component Stores and want to know if it's the right fit for you, this video gives you a good practical example for you to make your decision. Thank you for this! Still looking to see how to I can combine this with NGRX Data to reduce boiler plating.

  • @eva_space
    @eva_space ปีที่แล้ว +4

    Thanks a lot for information. It's really great solution.

  • @williamxsp
    @williamxsp ปีที่แล้ว

    Very good content. Easy and simple to get through. Thanks

  • @Ald0Abdiel
    @Ald0Abdiel ปีที่แล้ว

    Amazing video teacher thanks, but I have one question or rather two. One thing that I really like of the global store is the dev-tools which allows to see step by step the actions made by the users, but for the component store I couldn't find it inside the devtools, is this intended? if so what's the best way to debug or rather see the actions that the user does with the component-stores.
    Another question I have is regarding how to decide when to use component store or global store? in the context of a big project with NX that will host within multiple apps, what would be the best practice approach; is it important for me to worry about component-store or would be best if I only end up using the global store?
    Thanks again for the great content.

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  ปีที่แล้ว

      This is why I don't like component store and mostly use global store. Because of devtools which are not available for comp store. There is not a single best practice, just use what fits you and your application. Comp store are fully isolated with the comp and global store not.

  • @andrsbrbs
    @andrsbrbs ปีที่แล้ว

    I have one question: by providing PostsStore to the component directly, each component will have its own store instance, right? Just like with services without using { providedIn: 'root' } and providing it on the component itself?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  ปีที่แล้ว +1

      It's an alternative to reactive push-based "Service with a Subject" approach. So you can access it from different components like a service

  • @BonBiBon
    @BonBiBon ปีที่แล้ว

    Cooooooool!

  • @JohnSmith-yr7ih
    @JohnSmith-yr7ih 3 หลายเดือนก่อน

    Please explain: why is this needed at all? Is it used often in real projects? If so, why?! It's just extra code for nothing

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  3 หลายเดือนก่อน

      It is not mandatory but it helps to organize your local stage.
      Here is a comparison with ngrx state ngrx.io/guide/component-store/comparison

  • @Serialloserr
    @Serialloserr ปีที่แล้ว

    1 like is not enough. Thanks alot