NgRx Signal Store - Is It a NgRx Replacement?

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 64

  • @MonsterlessonsAcademy
    @MonsterlessonsAcademy  3 місяці тому

    WATCH NEXT: Angular with NgRx - Building Angular Project From Scratch - ua-cam.com/video/vcfZ0EQpYTA/v-deo.htmlsi=BptT7eqgflHIoQiQ

  • @nergrohombre
    @nergrohombre 7 місяців тому +4

    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!!

  • @rembautimes8808
    @rembautimes8808 6 місяців тому +1

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

  • @michaelkovalsky4907
    @michaelkovalsky4907 7 місяців тому +1

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

  • @musoverda
    @musoverda 5 місяців тому

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

  • @zoltanhorvath2238
    @zoltanhorvath2238 9 місяців тому +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  9 місяців тому +1

      Glad it was helpful!

    • @zoltanhorvath2238
      @zoltanhorvath2238 9 місяців тому

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

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  9 місяців тому

      @@zoltanhorvath2238 Happy learning!

  • @AdelBasiony
    @AdelBasiony 11 місяців тому +2

    Thanks a lot for this awesome explanation.

  • @muhammadidrees6650
    @muhammadidrees6650 11 місяців тому

    Thanks

  • @hasanibishi
    @hasanibishi 4 місяці тому

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

  • @NiGhTm4r389
    @NiGhTm4r389 10 місяців тому

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

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  10 місяців тому

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

    • @NiGhTm4r389
      @NiGhTm4r389 10 місяців тому

      @@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  10 місяців тому

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

  • @jitheshkramesh
    @jitheshkramesh 10 місяців тому

    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  10 місяців тому

      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 10 місяців тому

      @@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 8 місяців тому

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

  • @nnaluekenneth8420
    @nnaluekenneth8420 11 місяців тому

    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  11 місяців тому +2

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

    • @dmitriysuratov6601
      @dmitriysuratov6601 11 місяців тому

      @@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?

  • @gemini9775
    @gemini9775 Місяць тому

    very interesting thanks ^^

  • @changcnchang8174
    @changcnchang8174 9 місяців тому

    Thank you for your help

  • @muhammadidrees6650
    @muhammadidrees6650 11 місяців тому

    Thank you so much! :)

  • @Billy_Herrington__
    @Billy_Herrington__ 11 місяців тому

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

  • @vadimr5847
    @vadimr5847 11 місяців тому

    Thank you very much!

  • @trevormontgomery6795
    @trevormontgomery6795 11 місяців тому

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

    • @awkeye7
      @awkeye7 11 місяців тому +1

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

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  11 місяців тому +1

      Do what you like more for your taste.

  • @anutaNYC
    @anutaNYC 10 місяців тому

    But does it remain on the refresh page?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  10 місяців тому

      Nope. It's just javascript

    • @anutaNYC
      @anutaNYC 10 місяців тому

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

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  10 місяців тому

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

    • @anutaNYC
      @anutaNYC 10 місяців тому

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

  • @tranedev
    @tranedev 11 місяців тому

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

  • @srinik9999
    @srinik9999 11 місяців тому +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.

  • @vatokalandadze6184
    @vatokalandadze6184 4 місяці тому

    color theme name?

  • @anandu06
    @anandu06 8 місяців тому

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

  • @davesharman8302
    @davesharman8302 10 місяців тому

    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 11 місяців тому +1

    Angular is more and more like React, good trend

  • @BDominikGT
    @BDominikGT 9 місяців тому

    Thank you very much. ❤