Modern Change Detection

Поделиться
HTML-код
  • Опубликовано: 23 дек 2024

Комментарии •

  • @stefanstanchev5315
    @stefanstanchev5315 3 дня назад +3

    Rainer, you are incredible! Your contributions to the Angular community are invaluable. Thank you for everything!

  • @aleksandrm3466
    @aleksandrm3466 3 дня назад +2

    Hi Rainer, thanks for the clear explanation. I would like to add that we now have two types of ChangeDetectionMode: Global and Targeted. It's important to clarify that signals excel in the Targeted mode, where we do not use the Dirty flag. Instead, we utilize the RefreshView flag, and markAncestorsForTraversal with a HasChildViewsToRefresh flag. There is no Local Change Detection now, but with signals under special conditions, we can achieve a similar behavior. Thanks once more for your work.

    • @RainerHahnekamp
      @RainerHahnekamp  3 дня назад +2

      Hi Aleksandr, yeah, the way you described it, this is pretty much how I see Local Change Detection (without going so much into implementation details as you did).
      Since you are not happy with the term "Local Change Detection", you would use Local CD only, when the Change Detection can directly jump to the marked component or what does local change detection mean to you?

    • @aleksandrm3466
      @aleksandrm3466 3 дня назад

      @@RainerHahnekamp First of all, I want to thank you for all your videos. It's impressive how well you describe different topics. My comment was just to highlight the differences in current CD with signals. The naming is a bit confusing for me (someone suggested the name "Glocal"...). I hope we'll see Local CD once Signal components are fully implemented. Currently, we traverse from top to bottom in the best cases, and if a click on a child component triggers a signal at the top parent, we don't see much benefit.

    • @RainerHahnekamp
      @RainerHahnekamp  3 дня назад +2

      @@aleksandrm3466 Thanks, thanks, and you are totally right. I was just interested in what you would see as a "real" local change detection. Obviously, you've studied the source code because you know the internal names. There used to be a term floating around, coined "Signal Change Detection". That one will be the ONE.
      I agree that local/targeted change detection is very difficult to achieve. You need to have an asynchronous command because any user event will already mark all parents as dirty.

  • @TheDekhun
    @TheDekhun 5 дней назад +5

    Each of your lecture is like a goldmine of angular knowledge..
    So many deep insights to explore. Thanks for doing these.

  • @jorgen180
    @jorgen180 3 дня назад +1

    Another great video, it's good that you're covering entire scope of change detection over Angular versions, not only the new approaches introduced in most recent versions of Angular. So by explaining entire scope we can get a complete overview, not just bits of it. Thank you, great work!

    • @RainerHahnekamp
      @RainerHahnekamp  3 дня назад +1

      Thanks, yes it was important to me to cover everything. It is very easy to get confused these days. I guess the next revised version will be with SignalComponents. Then we have probably "three generations" of Change Detection. Although I think the term to be used then will by "Synchronization".

  • @ryzott
    @ryzott 5 дней назад +4

    Thank you Rainer, it is always a pleasure to watch your videos!

    • @RainerHahnekamp
      @RainerHahnekamp  5 дней назад +1

      Thank you. Good to hear. A lot of good vibes here :)

  • @wiliamferraciolli5380
    @wiliamferraciolli5380 5 дней назад +2

    ur knowledge is out of this world

  • @Matrium0
    @Matrium0 5 дней назад +1

    Great video - very good teaching style, especially with the live coding examples and showing whats really going on with rendering cycles.

  • @KiffinGish
    @KiffinGish 4 дня назад +1

    This is an excellent overview, thanks!

  • @regedam7559
    @regedam7559 2 дня назад

    Hi Rainer!
    Thanks for another great video
    There is a thing worth mentioning about signals that may seem obvious, but it's still worth mentioning this
    Signals only mark a component as dirty if the signal is used in a template
    Otherwise, the component will not be subject to CD checking

    • @RainerHahnekamp
      @RainerHahnekamp  2 дня назад +1

      Ah, yes, I thought that should be clear, but since you mentioned it: A proper hint in the next video should do it. Thanks

  • @barakdabach4232
    @barakdabach4232 День назад

    Hi rainer,
    I am enjoying your videos,
    Your ability to simplify and demonstrate complex topics is amazing!!!.
    Can you make a video about angular's life cycle methods?

    • @RainerHahnekamp
      @RainerHahnekamp  День назад

      Hi Barak, first of all thanks for your compliment. Honestly, I see the life-cycle hooks coming out of age very quickly. There is a talk of Matthieu Riegler (ruclips.net/user/live5m0eqGxrLUo?si=P46HQBTfh3O0cIkO) where shows that a modern Angular application doesn't require lifecycle hooks anymore.
      But I am happy to answer any specific question you might have about lifecycle hooks.

  • @aj.arunkumar
    @aj.arunkumar 5 дней назад +1

    i was asked in my job interview about change detection and i was able to answer only because of your older video... (i got the job) thanks Rainer.!!! have a good day

  • @codeSurvivor
    @codeSurvivor 5 дней назад +2

    Great Rainer, thanks a lot!

    • @RainerHahnekamp
      @RainerHahnekamp  5 дней назад +2

      Thanks and you are welcome, Mr CodeSurvivor 👍

  • @rolandjost3823
    @rolandjost3823 3 дня назад +1

    Thanks @Rainer🎉

  • @DemystifyFrontend
    @DemystifyFrontend 23 часа назад

    Impressive. Going to be my go-to guide for change detection now onwards...

  • @biotexcom5464
    @biotexcom5464 3 дня назад

    Thank you very much from python backend developer.
    I not only teach angular, but I also try better understand English with you.
    Hi from Ukraine/Kiev
    Why I like Angular, because it reminded me the Django Framework. Unfortunately Django not enhance in the same way.

    • @RainerHahnekamp
      @RainerHahnekamp  3 дня назад +1

      Hello, hello from Vienna 👋. Unfortunately, I've never used Django. I have a little bit of experience in Python but used to work mainly with Spring or .NET in the backend.
      Thanks for the compliment that you also see my video as a way to improve your English. I must say, I didn't expect that. Thanks!

  • @heavierthanlight7173
    @heavierthanlight7173 5 дней назад +1

    Thnx again!

  • @DemystifyFrontend
    @DemystifyFrontend 9 часов назад

    Thanks!

  • @valikonen
    @valikonen 5 дней назад

    Man, I learn python in 45 minutes.... make it shorter

    • @RainerHahnekamp
      @RainerHahnekamp  5 дней назад +3

      Nope, I don't really belive in "learn xy in 5 minutes..." videos. If you want to learn something seriously, you need to put in the necessary time.

    • @yevheniiherasymchuk
      @yevheniiherasymchuk 4 дня назад +4

      I hope it was a sarcasm. we need to ask for 5h videos instead. Rainer is a GDE and you just get this for free...

  • @lindermannla
    @lindermannla 4 дня назад +1

    Great Tutorial! Thnx @Hahnekamp!