{"library":"axios-interceptor-hook","type":"library","category":null,"description":"React hooks for Axios with built-in react-toastify integration. Version 0.2.13. Active development. Provides a simple hook (useAxiosInterceptor) that returns data, pending state, and an apiHandler function to perform HTTP requests with automatic toast notifications. Requires explicit installation of peer dependencies (axios, react-toastify). Supports bearer token via localStorage and base URL via environment variable (REACT_APP_BASE_URL). Less flexible than alternatives like react-query or swr, but offers minimal configuration for toast integration.","language":"javascript","status":"active","version":"0.2.13","tags":["javascript","React","Hooks","Api","Axios","Interceptor"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install axios-interceptor-hook","imports":["import { useAxiosInterceptor } from 'axios-interceptor-hook'","const { useAxiosInterceptor } = require('axios-interceptor-hook')"]},{"cmd":"yarn add axios-interceptor-hook","imports":[]},{"cmd":"pnpm add axios-interceptor-hook","imports":[]}],"homepage":"https://github.com/sheikhfahad67/axios-interceptor#readme","github":"git://github.com/sheikhfahad67/axios-interceptor","docs":null,"changelog":null,"pypi":null,"npm":"axios-interceptor-hook","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}