{"library":"use-axios","type":"library","category":null,"description":"A React hook that integrates axios with React Suspense for data fetching inside function component bodies. Version 1.0.0 is stable, uses a simple API mirroring axios parameters, and automatically caches responses globally across components. It offers both a throwing `useAxios` (for use with Suspense and Error Boundaries) and a safer error-handling `useAxiosSafe`, plus a `refetch` function to manually invalidate cached data. Requires React ≥16.8 and `axios` as a peer dependency. Its key differentiator is the Suspense-first design: no manual loading state management, with caching built in.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","react","hooks","axios"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install use-axios","imports":["import useAxios from 'use-axios'","import { useAxiosSafe } from 'use-axios'","import { refetch } from 'use-axios'","import { create } from 'use-axios'"]},{"cmd":"yarn add use-axios","imports":[]},{"cmd":"pnpm add use-axios","imports":[]}],"homepage":"https://github.com/ArnoSaine/use-axios#readme","github":"https://github.com/ArnoSaine/use-axios","docs":null,"changelog":null,"pypi":null,"npm":"use-axios","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}