Learn @ngrx/entity and Feature Modules

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 56

  • @NAMBINRAJAN
    @NAMBINRAJAN 4 роки тому

    Saves time for those who knw ngrx
    who just need the concept understanding to get started

  • @Darq_IsLive
    @Darq_IsLive 6 років тому +33

    woah woah woah, slow down speedy gonzales

    • @kirkanos771
      @kirkanos771 6 років тому +3

      I watched with speed set at 0.75

  • @kevintowe3538
    @kevintowe3538 7 років тому +20

    Just wanted to thank you for the freakin awesome videos/content you post.

    • @Fireship
      @Fireship  7 років тому +2

      +Kevin Thank you! Really appreciate that.

    • @kevintowe3538
      @kevintowe3538 7 років тому +1

      Maybe this is a future video, but how exactly does this integrate with AngularFirestore? I integrated @ngrx/entity into one of my apps the other day, but the only entity operator I'm really using is 'adapter.addAll()'. In my service, I subscribe to someCollection.snapshotChanges(), and I map the data from that observable to an action which runs the 'adapter.addAll(action.payload.data, state). addAll replaces the current collection with provided collection, so the way I have it setup right now is working, but I figure I should be utilizing stateChanges() or auditTrail() so to not load a whole new collection every time. It's like my database is with firebase not ngrx/entity, I don't know, state is confusing.
      Anyways thanks for your videos, I started learning/utilizing ngrx about a month, ago and they have been a huge help.

    • @Fireship
      @Fireship  7 років тому +2

      I actually like your approach - redux dev tools is doing basically what audit trail would do and statechanges isn't really useful in this scenario. I am releasing a video tomorrow that extends this video with ngrx effects and firestore, but it's only available to pro members.

  • @angelleal3005
    @angelleal3005 4 роки тому +1

    Great video ! Incredibly fast but rather have this than a 30 min vid explaining the same.

  • @hichamasbagui3746
    @hichamasbagui3746 2 роки тому

    Simple and clear, I love it, very cool, thanks.

  • @kasperverber
    @kasperverber 7 років тому +3

    First of thank you for the guides.. Have you experienced ngrx/entity to be slow with writing data to state? A 100 results query took up to 30 sec longer than our react redux based app. I've tried adding console.log with the api results after the switchmap in the effect, and it seemes the delay is when the reducer adds the action.payload to the adapter.

  • @03shyam
    @03shyam 7 років тому +2

    How do I create selectors for nested entities?
    Thank you

  • @chrisgeorgoulis7117
    @chrisgeorgoulis7117 6 років тому +1

    How can we use ngrx/entity with normalizr, which would be the appropriate pattern?

  • @KobyLev
    @KobyLev 5 років тому

    Great and very Helpful tutorial!!!

  • @bonnes04
    @bonnes04 5 років тому +1

    Make one video on ngrx-data. Thank You .

  • @franciscoroca9444
    @franciscoroca9444 5 років тому

    Do you have any examples with lazy loaded modules? is the same approach as in the example? thanks for the tutorial! super well explained!

  • @jfkenz2713
    @jfkenz2713 7 років тому +1

    do we use all ngrx store,effect & entity?

    • @Fireship
      @Fireship  7 років тому

      Yes, they all work together to handle different use cases.

    • @jfkenz2713
      @jfkenz2713 7 років тому

      why ng2-redux more easy to intergrate? what do u prefer between this?

  • @jonasruth
    @jonasruth 4 роки тому

    Excelent tutorial! You may have missed exporting the Pizza Order Component to the main module... Thanks!

  • @sourishdutta9600
    @sourishdutta9600 5 років тому +2

    Awesome man!! Make one video on ngrx-data. Thank You .

  • @sannguyen1008
    @sannguyen1008 7 років тому

    Can you tell me which the color and icon theme, fonts you r using? They are really nice

    • @Fireship
      @Fireship  7 років тому

      Thank you! I use atom-one-dark for syntax and "VS code icons" for icons.

    • @sannguyen1008
      @sannguyen1008 7 років тому

      Nice. Can you make a tutorial about Injecting Reducer, Why we need that? I also suggest you take a look at @nrwl/nx implementation of actions, they use interface instead of class, reduce code boilerplate and still give the full typescript autocompletion

  • @martinfreire6733
    @martinfreire6733 7 років тому

    thanks to share! one question: the initial state it was your convention or the way that @ngrx/entity handles the elements?

    • @Fireship
      @Fireship  7 років тому +2

      I did it that way primarily to show the shape of the entity data. The docs have a better explanation of the method here github.com/ngrx/platform/blob/master/docs/entity/adapter.md#getinitialstate

    • @martinfreire6733
      @martinfreire6733 7 років тому

      Thanks!

  • @Arrunisha651
    @Arrunisha651 7 років тому +2

    Can you tell me what is meta reducer? Why do we need this?

    • @Fireship
      @Fireship  7 років тому

      It's optional. Ngrx creates one big reducer for you, the meta reducer allows you to run code on the state/actions that flow through it. It can useful for debugging/logging.

    • @Arrunisha651
      @Arrunisha651 7 років тому

      Angular Firebase tnx 🙂

    • @Arrunisha651
      @Arrunisha651 7 років тому

      Angular Firebase do you have a full ngrx course to buy?

    • @Fireship
      @Fireship  7 років тому +2

      No, I don't. I offer a pro membership that provides full access to my content + other benefits. Tomorrow, I am releasing a pro video for ngrx with the Firestore database.

    • @sannguyen1008
      @sannguyen1008 7 років тому

      How about Injector reducer? Why do we need that?

  • @karthikeyanrajendran5918
    @karthikeyanrajendran5918 7 років тому

    createSelectors and createFeautureSelectors are always confusing. How does this helper function work?

  • @ismail7947
    @ismail7947 6 років тому

    piece, love ur videos, can u help me with an advice? im new in ngrx world, i have already implemented some app in it, but i totally have no idea what entities are doin and where to use em, i have already read the docs, and its like a simple staff but my brain cannot get it, could u lead me to some detailed explanation or example plz, (example-app is already reviewed :)), thank u

  • @mquanit
    @mquanit 5 років тому

    what should we do if we want to persist our data???

  • @MatiasMorenoIglesias
    @MatiasMorenoIglesias 7 років тому

    Thanks! how add realtime?

  • @jfkenz2713
    @jfkenz2713 7 років тому

    why ngrx store devtools cannot jump ? it will revert to last state how to fix this?

  • @martinl.4711
    @martinl.4711 3 роки тому

    Object "defaultPizza" is a collection; so the variable name is inappropriate.

  • @majidkhoshnasib6960
    @majidkhoshnasib6960 6 років тому

    What's your console font?

  • @amsakanna
    @amsakanna 7 років тому

    How do I extend EntityAdapter?

  • @uwspstar2008
    @uwspstar2008 7 років тому +2

    it is cool !!! thanks for share this !

  • @ValAllenSamonte
    @ValAllenSamonte 7 років тому +3

    now im craving for pizza :/

    • @Fireship
      @Fireship  7 років тому +1

      +Val that was my #1 goal with this video.

  • @01mrsir
    @01mrsir 3 роки тому

    @ngrx/data vs @ngrx/entity🙏🙏🙏

  • @murtazamohammadi9370
    @murtazamohammadi9370 2 роки тому

    very fast and can not grap them easy, but anyway thanks for sharing

  • @Darq_IsLive
    @Darq_IsLive 6 років тому

    Where the hell is pizzareducer coming from?
    Where THE FUCK is it coming from?

  • @rafiquemohammed3029
    @rafiquemohammed3029 Рік тому

    honestly.. the video is too fast to grab...

  • @glebandreev8539
    @glebandreev8539 5 років тому

    Way too slow! Increase the speed of typing/uncommenting, at least x20.
    Good content, but insane presentation.