New In Angular 19 - The resource() API

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

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

  • @lucabaxter4002
    @lucabaxter4002 6 дней назад

    I guess using a debounce on the search before setting the search signal value, would be a better option to avoid all those ugly canceled calls in the console

  • @wiliam334
    @wiliam334 13 дней назад +2

    Ta for the tutorial.
    IMHO I think that cancel request is still not ideal. A denounce time from rxjs would be better.
    Mixing the interop api between signals and observables

    • @adambickford8720
      @adambickford8720 13 дней назад

      Agreed. The damage may well be done by the flood of requests.

  • @martinflores9611
    @martinflores9611 13 дней назад

    great video

  • @heavierthanlight7173
    @heavierthanlight7173 13 дней назад

    Thnx again

  • @MrJeszam
    @MrJeszam 11 дней назад

    Damn, I dont like to use abort signal. It's too dirty on the console. I wonder how it will implement using rxjs + resource.

  • @MarcoSa-q1g
    @MarcoSa-q1g 13 дней назад +2

    Thanks for the explanation! Can we use httpCliente with Resource() ? Does httpCliente also have a method with AbortSignal?

    • @NikiHerl
      @NikiHerl 11 дней назад +1

      One can definitely 'naively' use httpClient (just wrap the get()-call in firstValueFrom() to transform to a promise). However, I don't see anything in the current resource API/documentation that would integrate with HttpClient's cancel()...

    • @MarcoSa-q1g
      @MarcoSa-q1g 11 дней назад

      @@NikiHerl Thanks for the help! 👍

    • @lukebennett3189
      @lukebennett3189 11 дней назад

      You can tell it to use the http client

  • @rkumar.lnct24
    @rkumar.lnct24 8 дней назад

    Instead of abort cant we go ahead with debounce functions