NgRx Signals Store - Is It a NgRx Replacement?

Поділитися
Вставка
  • Опубліковано 19 чер 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...

КОМЕНТАРІ • 55

  • @nergrohombre
    @nergrohombre 2 місяці тому +1

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

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

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

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

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

    Thanks a lot for this awesome explanation.

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

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

    Thank you very much!

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

    Thank you so much! :)

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

    Thank you very much. ❤

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

    Thank you for your help

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

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

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

    Thanks

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Do what you like more for your taste.

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

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

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

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

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

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

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

    But does it remain on the refresh page?

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

      Nope. It's just javascript

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

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

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

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

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

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

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

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

    Angular is more and more like React, good trend