{"repo":"simoneb/axios-hooks","free":true,"listed":false,"github":"https://github.com/simoneb/axios-hooks","clone":"git clone https://github.com/simoneb/axios-hooks.git","description":"🦆 React hooks for axios","language":"JavaScript","stars":1893,"topics":["axios","react","hooks"],"license":null,"category":"ui-components","readme_excerpt":"The license of this software has changed to AWISC - Anti War ISC license axios-hooks React hooks for [axios], with built-in support for server side rendering. Features - All the [axios] awesomeness you are familiar with - Zero configuration, but configurable if needed - One-line usage - Super straightforward to use with SSR Installation npm install axios axios-hooks axios is a peer dependency and needs to be installed explicitly Version information - axios-hooks@5.x is compatible with axios@1.x - axios-hooks@4.x and below are compatible with axios@0.x Quick Start Documentation API - useAxios - configure - serializeCache - loadCache - makeUseAxios Examples - Quick start - Manual request - Error handling - Authentication and token refresh - Caching - Using makeUseAxios - Configuration - Pagination - Infinite scrolling - Request chaining - Options change detection - react-native - With react-sortable-hoc - With react-router Guides - Refresh Behavior - Configuration - Manual Requests - Manual Cancellation - Server Side Rendering - Multiple Hook Instances API The package exports one default export and named exports: useAxios(url config, options) The main React hook to execute HTTP requests. - url config - The request URL or config object, the same argument accepted by axios . - options - An options object. - manual ( false ) - If true, the request is not executed immediately. Useful for non-GET requests that should not be executed when the component renders. Use the execute functi","default_branch":null,"files":null,"tree":[],"storefront":"/r/simoneb","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/simoneb/axios-hooks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}