Signals in Action: Loading Indicator

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

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

  • @olalekanraheem4655
    @olalekanraheem4655 6 часов назад +1

    Your courses are always great.
    I started web dev with react but the first name I learned about Angular from your courses on plurasight made me switch to Angular since 2020 and I never regret it.
    Thanks so much for those content

    • @deborah_kurata
      @deborah_kurata  5 часов назад

      That is so very kind of you to say. Thank you!
      Glad you are a part of the Angular community. 😊

  • @matheusjordan6031
    @matheusjordan6031 4 часа назад

    A dublagem para portugues me ajudou demais, excelente video, conteudo muito util. Trabalho com Angular a 6 anos e de la pra ca sempre estou aprendendo e me atualizando.

    • @deborah_kurata
      @deborah_kurata  3 часа назад

      Fico feliz em saber que a dublagem funciona bem para você. Tudo de bom! 😊

  • @RsPippen
    @RsPippen 4 часа назад

    thank you for the amazing content as always!!

    • @deborah_kurata
      @deborah_kurata  3 часа назад

      I'm glad you found it useful! Thanks! 😊

  • @aram5642
    @aram5642 10 часов назад +2

    And I bet the next video is going to be about error handling with rxResource! The world wouldn't be itself if it didn't expose us to errors ;-)

    • @deborah_kurata
      @deborah_kurata  10 часов назад

      I have a list and error handling is definitely on it! 😊

  • @MiguelAngelMartinezJerez
    @MiguelAngelMartinezJerez 12 часов назад +1

    Muchas gracias por usar el doblaje automático.

    • @deborah_kurata
      @deborah_kurata  11 часов назад +1

      Espero que se traduzca bien para ti. ¡Gracias por mirar!

  • @ErickRodrCodes
    @ErickRodrCodes 10 часов назад

    while it is experimental, the amount of DX on it is awesome. I remember using a subscription to toggle off the loader, but this seems even more easy to implement.

    • @deborah_kurata
      @deborah_kurata  10 часов назад

      Yep! I *really* like the features they've incorporate into resource/rxResource. One missing feature is to have a initial value so we don't need the extra line with the computed setting up the initial value. I understand that's on the team's todo list.

  • @julienr8114
    @julienr8114 6 часов назад

    As always an amazing content, thks a lot. Is interceptor still the best way to display a loader ?

    • @deborah_kurata
      @deborah_kurata  5 часов назад +1

      Thank you!
      An interceptor may be better if you have lots of HTTP calls and want to have the same loading indicator for all of them. Otherwise, using this isLoading property is a great way to display the loading indicator.

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

    Yay! We got a yay!

  • @richarddefortune1329
    @richarddefortune1329 6 часов назад

    I didn't even know that this flag is in the object itself.
    I usually deal with loading mechanics inside the interceptors. Turning the flag on when requests go out then toggle the flag when the response comes back.
    This technique is even better because I can control which events I'm interested in. With the interceptors, I need to filter some requests. Let's say when the Oidc -client library wants to check whether the user is still logged in, I should ignore it. Otherwise, the skeleton will appear on the page.

    • @deborah_kurata
      @deborah_kurata  5 часов назад

      Yes, this feature is very useful!
      And yes, is much better than manually handling the loading flag in an observable pipeline.
      An interceptor may be better if you have lots of HTTP calls and want to have the same loading indicator for all of them. Otherwise, using this isLoading property is a great way to display the loading indicator.

  • @DejanFilipov-gv8qz
    @DejanFilipov-gv8qz 11 часов назад

    Hello teacher 🎶 hello teacher 🎶how are you 🎶 how are you 💙💜💛

    • @deborah_kurata
      @deborah_kurata  9 часов назад +1

      I am doing well thanks 🎶 I am doing well thanks 🎶
      All the best! 🎶 All the best! 🎶

  • @jaspernygaard9500
    @jaspernygaard9500 13 часов назад

    Adding a delay to the resource feels like bad practice. I understand the issue of loading too fast, but what if the client has a slow connection. Then the long time would be increased artifically and worsen UX instead of improving it. I feel like behavior like that might be better suited for the loading bar component

    • @richarddefortune1329
      @richarddefortune1329 12 часов назад +4

      Did you miss the part where she said: "don't do this in production code"?

    • @jaspernygaard9500
      @jaspernygaard9500 12 часов назад

      @richarddefortune1329 okay yeah lmao. xD

    • @deborah_kurata
      @deborah_kurata  11 часов назад +2

      Yeah, no. The delay() is only for use during testing so *we* can see the loading indicator. Immediately after adding the delay in the video, I said: " Be sure to remove any code like this before deploying!"