Releases: sheaivey/react-axios
Releases · sheaivey/react-axios
v2.0.6
Updating the supported peer dependencies to include React ^18.0.0.
Fixing an issue with GET requests that was providing the data
attribute when it does not support it.
Full Changelog: v2.0.5...v2.0.6
v2.0.5
This release has the following updates:
Updating legacy context methods and removing UNSAFE_ lifecycle methods to be compatible with React.StrictMode.
v2.0.3
This release has the following updates:
New withAxios(options)(ComponentToBeWrapped)
HoC to allow the consumer more flexibility to create complex Request components.
Renaming onReload(props)
to makeRequest(props)
. This change is transparent and the actual function name is up to the consumers implementation of the Request child callback function.
v2.0.0
This release has the following updates:
New prop called params
which will supply query string params to the Axios config.
New onReload(props)
function available to the child function render. This function can optionally pass temporary props to the Axios request.
On error the child function property response
will contain the data from error.response
.
v1.0.3
Updated readme and other minor fixes.
Added withAxios()
Fixed #9 issue calling setState() after component was unmounted.
v1.0.2
Adding debounceImmediate=true prop
If the props change during the debounce window the current request will be canceled and a new request will be kicked off in order to keep the props in sync.
v1.0.1
Using module prop-types instead of React.PropTypes.
v1.0.0
Bumping version to 1.0.0 and Fixing peer dependancies.
Added ComponentWillUnmount() to fix setState issue after component was unmounted and axios request had not finished.