What is the use of Axios interceptor | How can you use Axios interceptors | React API series - #3

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

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

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

    brother main yehi dhoond raha tha bcz har api call par error and res .then krk handle krna padh raha tha pr yeh bht achha method hai response and error handleling ke liye .So Thank you Brother.

  • @webcodeexplainedYT
    @webcodeexplainedYT 3 года назад

    Kya hm prateyak request se phle loader lga skte h aur response aane ke baad usko hta skte h ? Ye sb kaam ke liye interceptor ka accha upyog kr skte h

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

    Its super easy to understand... Thankyou for this video

  • @ui-ujjwal
    @ui-ujjwal Год назад

    Thanks for the tutorial :)

  • @iwillchangemybadtime8480
    @iwillchangemybadtime8480 6 месяцев назад +1

    What is the difference between axios instance and axios interseptor please 🥺

    • @codewithnegi
      @codewithnegi  6 месяцев назад +1

      Thanks for asking interesting question. Lets forgot about axios. Lets understand about instance and interceptor. What is mean by instance if we talk about in programming term. Its a object which is refer to class. And with this object we can access all the properties and methods of the class. So we can assume Axios is class in this case. I hope this will help to understand what is axiso instance.

    • @codewithnegi
      @codewithnegi  6 месяцев назад +1

      Now i come to second question. What is interceptor. It is kind of function which allow to modify network request and response. And axios interceptor do same thing. I hope you will get your second question answer. Thank you 🙏

    • @iwillchangemybadtime8480
      @iwillchangemybadtime8480 6 месяцев назад +1

      @@codewithnegi thank you very much sir

  • @shujathaliirfan2662
    @shujathaliirfan2662 3 года назад +1

    Very nice bro 👍

  • @aminimani5649
    @aminimani5649 3 года назад +1

    thanks but i could understand where you explain with subtitle parts

  • @sudheerpoojary8975
    @sudheerpoojary8975 3 года назад +1

    how to use axios-auth refresh using interceptor?

  • @shivagurung-uk7rp
    @shivagurung-uk7rp Год назад

    thank you

  • @rababportfolio3022
    @rababportfolio3022 2 года назад

    It could be more useful if volume did not keep going up and down and the movement of mouse was not that fast to catch

  • @NeerajGarg
    @NeerajGarg 3 года назад

    Very good. You have a great knowledge

  • @RahulVlogerLifestyle
    @RahulVlogerLifestyle 3 года назад

    nice sir