NgRx Signals Store - Is It a NgRx Replacement?

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • ► LEARN MORE ABOUT UPLOADCARE - uploadcare.com/
    Learn NgRx signals store which is a new library from NgRx family. It simplifies working with signals and organizes them in efficient manner introducing new rules to the code.
    TIMESTAMPS
    0:00 Introduction
    2:18 NgRx signals installation
    3:13 NgRx signals state
    10:01 NgRx signals store
    11:29 NgRx withComputed
    12:40 NgRx withMethods
    15:57 Rx method
    ► CHECK MY COURSES - monsterlessons-academy.com/co...
    MOST POPULAR COURSES
    ► Building real project with Angular + NgRx - monsterlessons-academy.com/co...
    ► Building real NestJS API - monsterlessons-academy.com/co...
    ► Javascript interview questions - monsterlessons-academy.com/co...
    ► Angular Interview Questions monsterlessons-academy.com/co...
    ► Building real fullstack project - monsterlessons-academy.com/co...
    ► Mastering Git - monsterlessons-academy.com/co...
    ► Mastering Docker and Docker Compose - monsterlessons-academy.com/co...
    ► Building real project with React Hooks - monsterlessons-academy.com/co...
    ► Building real project with Vue + Vuex - monsterlessons-academy.com/co...
    FOLLOW ME
    ► TWITTER - / monster_lessons
    ► INSTAGRAM - / monsterlessonsacademy
    ► TIKTOK - / monsterlessonsacademy
    REFERENCES
    ► Source code - github.com/monsterlessonsacad...

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

  • @nergrohombre
    @nergrohombre 3 หลายเดือนก่อน +2

    WOW! I got moved to a team that was using NG17, I needed to learn this fast. THANK YOU FOR GETTING TO THE POINT QUICKLY! Much appreciated!!

  • @michaelkovalsky4907
    @michaelkovalsky4907 3 หลายเดือนก่อน +1

    I love this, straight to the point. Exactly what I need as we're planning on upgrading to Angular 17

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

    I finally implemented Signal Store in my app. All possible due to your amazing tutorial. Thanks

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

    Cool! the example is simple, consistent and understandable; I got acquainted with many tricks in twenty minutes

  • @AdelBasiony
    @AdelBasiony 7 หลายเดือนก่อน +2

    Thanks a lot for this awesome explanation.

  • @hasanibishi
    @hasanibishi 21 วันที่ผ่านมา

    It's impossible to say "I do not understand this", amazing explanation!

  • @zoltanhorvath2238
    @zoltanhorvath2238 5 หลายเดือนก่อน +1

    Great that you provide source code, i probably mentioned it before. I like the tutorial now, because i can follow it with that. Thanks!

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  5 หลายเดือนก่อน +1

      Glad it was helpful!

    • @zoltanhorvath2238
      @zoltanhorvath2238 5 หลายเดือนก่อน

      @@MonsterlessonsAcademy Also bought a course from you, mainly because of the detailed tutorials you have on the chanel.

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

      @@zoltanhorvath2238 Happy learning!

  • @vadimr5847
    @vadimr5847 7 หลายเดือนก่อน

    Thank you very much!

  • @muhammadidrees6650
    @muhammadidrees6650 7 หลายเดือนก่อน

    Thank you so much! :)

  • @changcnchang8174
    @changcnchang8174 5 หลายเดือนก่อน

    Thank you for your help

  • @BDominikGT
    @BDominikGT 5 หลายเดือนก่อน

    Thank you very much. ❤

  • @tranedev
    @tranedev 7 หลายเดือนก่อน

    like for video, as always! Thank you buddy, for really good description and explanation

  • @muhammadidrees6650
    @muhammadidrees6650 7 หลายเดือนก่อน

    Thanks

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  7 หลายเดือนก่อน +1

      Thank you so much for your support. It means a lot to me!

  • @nnaluekenneth8420
    @nnaluekenneth8420 7 หลายเดือนก่อน

    Thank you very much for your amazing lessons. I guess we can use this new signal store instead of the main ngrx store for our state management, what do you think about this🤔

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  7 หลายเดือนก่อน +2

      Kind of but it is still not a replacement. It's more to organize signals inside your service or component.

    • @dmitriysuratov6601
      @dmitriysuratov6601 7 หลายเดือนก่อน

      @@MonsterlessonsAcademy HI. You wrote about it as singular form. Do you think that we should use it connected only with one particular service or component.
      Can we use it like global store?
      I found that it is not connected with redux chrome plugin (provideStoreDevtools is not working for it). What is the best way to debug it?

  • @Billy_Herrington__
    @Billy_Herrington__ 7 หลายเดือนก่อน

    why is ngIf and ngFor are written in old format ? not like @for and @if ?
    and 2nd dont u think ngrxsignal is kinda redundant ?

  • @trevormontgomery6795
    @trevormontgomery6795 7 หลายเดือนก่อน

    Would you keep this in a separate file than your component?

    • @awkeye7
      @awkeye7 7 หลายเดือนก่อน +1

      Yes you can. There is a great example of this in their documentation under @ngrx/signals > rxjs-integration

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  7 หลายเดือนก่อน +1

      Do what you like more for your taste.

  • @jitheshkramesh
    @jitheshkramesh 6 หลายเดือนก่อน

    Thanks for the tutorial. Once the page gets forcefully refreshed (F5), all the signal/subject values are getting cleared. How to fix this ? . Please help.

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

      It's Javascript. It only exists in memory. Yes everything is removed after page reload. You either use local storage to store some values or recreate your state after reload.

    • @jitheshkramesh
      @jitheshkramesh 6 หลายเดือนก่อน

      @@MonsterlessonsAcademy when I tried to update Signal at effect getting error message like this. please suggest. Writing to signals is not allowed in a `computed` or an `effect` by default. Use `allowSignalWrites` in the `CreateEffectOptions` to enable this inside effects.

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

      “What does this extremely descriptive well written error mean??!?”

  • @NiGhTm4r389
    @NiGhTm4r389 6 หลายเดือนก่อน

    Very nice explanation. What I wonder is, how can this be combined with ngrx store in a meaningful way?

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

      It can't. It's a replacement for plain signals. Just use it simultaniously with ngrx store if you need to

    • @NiGhTm4r389
      @NiGhTm4r389 6 หลายเดือนก่อน

      @@MonsterlessonsAcademy yeah that's what I meant, but I'm not sure how exactly. What I'm thinking of would be subscribing to a selector and save the value as a signal maybe?

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

      @@NiGhTm4r389 You want this.store.selectSignal(selector)

  • @anutaNYC
    @anutaNYC 6 หลายเดือนก่อน

    But does it remain on the refresh page?

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

      Nope. It's just javascript

    • @anutaNYC
      @anutaNYC 6 หลายเดือนก่อน

      @@MonsterlessonsAcademy so it doesn't retain the HR state like ngrx store?!

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

      @@anutaNYC Nothing does that without local storage or etc. Ngrx store also doesn't

    • @anutaNYC
      @anutaNYC 6 หลายเดือนก่อน

      @@MonsterlessonsAcademy i always thought store stays on all pages since it's SPA applications with angular, thank you for you response.

  • @vatokalandadze6184
    @vatokalandadze6184 11 วันที่ผ่านมา

    color theme name?

  • @srinik9999
    @srinik9999 7 หลายเดือนก่อน +2

    Great video as usual! I suggest using VS Code as IDE, it helps most of us to follow the video along with the file structure.

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

    What's the pros and cons ,while using this signalstore compared to component store , please explain.

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

      It's signals. All other rules are same like in component store

  • @davesharman8302
    @davesharman8302 6 หลายเดือนก่อน

    It's a shame that the signal store doesn't work with the redux debug feature in chrome like ngrx/store does. Yes, it's not the same, has no actions etc. but it would still be nice.

  • @DjLeonSKennedy
    @DjLeonSKennedy 7 หลายเดือนก่อน +1

    Angular is more and more like React, good trend