Question · React Native course · Module 4: State and API data

Axios interceptor

What are interceptors in axios used for?

Answer options

  • For blocking requests
  • For modifying requests/responses before they are handled
  • For caching
  • For data compression

You can check the correct answer by solving this task in the CodeWorlds game.