@clutch-marketplace/react-axios

1.1.0 • Public • Published

react-axios

Axios Component for React with child function callback. This is intended to allow in render async requests.

Features

  • Same great features found in Axios
  • Component driven
  • Child function callback (error, response, isLoading, makeRequest, axios) => { }
  • Auto cancel previous requests
  • Debounce to prevent rapid calls.
  • Request only invoked on prop change and isReady state.
  • Callback props for onSuccess, onError, and onLoading
  • Supports custom axios instances through props or a <AxiosProvider ... >
  • Create your own request components wrapped using the withAxios({options})(ComponentToBeWrapped) HoC

Readme

Keywords

none

Package Sidebar

Install

npm i @clutch-marketplace/react-axios

Weekly Downloads

2

Version

1.1.0

License

none

Unpacked Size

613 kB

Total Files

72

Last publish

Collaborators

  • clutch-bot