Stop memory leaks in Angular

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

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

  • @TayambaMwanza
    @TayambaMwanza Год назад +3

    Wow I like these bite sized videos, short but informative and clear, thanks you!

  • @thepassivefighter
    @thepassivefighter Год назад +3

    Nice, short to the point and clearly explained... Thank you!

  • @yashpanchal7
    @yashpanchal7 Год назад

    please dont stop making videos ever. I am counting on you to make my programmer life 10x better.

  • @davidpreininger6350
    @davidpreininger6350 Год назад +3

    Great video. I was wondering why we would use ReplaySubject in the third method instead of a regular Subject?

    • @ScottABailey
      @ScottABailey  Год назад +2

      Good question!
      I choose a ReplaySubject just to be defensive in case there is some code-path that tries to setup a subscription after onDestroy has already been called. The ReplaySubject will re-emit the original "hey - I've bee destroyed!" signal, causing this new subscription to be torn down immediately. If you use a regular Subject, the signal would not be repeated on this second subscription.
      Admittedly, the situation is pretty rare, but I do it for that extra level of defense.

  • @ismeetpawar123
    @ismeetpawar123 Год назад +1

    You are right Im struggling with this since last 2 days and there are so many rxjs observables i have removed based on memory dump.

  • @TsoiIzAlive
    @TsoiIzAlive Год назад +1

    I apreciate your content so much! please continue to upload !
    Edit: SInce you are up for suggestions I was wondering if you can make a Video on how to increase Security of your App at Developement Time

  • @anhtaa1
    @anhtaa1 Год назад +1

    Thank you for your sharing. That was very informative 👍

  • @firashmedi6470
    @firashmedi6470 Год назад +1

    Very helpful, thank you!

  • @weblio4861
    @weblio4861 Год назад

    wow. Very good! Thank you very much for this video! :-)

  • @Sharmapawan98
    @Sharmapawan98 Год назад +1

    Hope I am not leaking memory by this.channel.subscribe()😅

    • @ScottABailey
      @ScottABailey  Год назад +2

      😀, I was trying to think of a good pun to end on that!

    • @Sharmapawan98
      @Sharmapawan98 Год назад

      @@ScottABailey It was good indeed .