Data to pass down. (Note: payload is appended to the URL for Get requests)
onCompleted
function
Callback on successful fetch
onError
function
Callback on failed fetch
transform
Transform∣function∣boolean
Overrides default formatting of payload. Setting to FALSE will prevent any transformation to payload. (Note that the Transform object contains default transformation operations).
onError
ResponseTypes
Function used to handle the response body.
dependencies
PARAM
TYPE
DESCRIPTION
dependencies
array
The array of dependencies to pass to React's useEffect's second parameter. Used to determine when this hook is fired. Default: [].
Data to pass down. (Note: payload is appended to the URL for Get requests)
onCompleted
function
Callback on successful fetch
onError
function
Callback on failed fetch
transform
Transform∣function∣boolean
Overrides default formatting of payload. Setting to FALSE will prevent any transformation to payload. (Note that the Transform object contains default transformation operations).
onError
ResponseTypes
Function used to handle the response body.
dependencies
PARAM
TYPE
DESCRIPTION
dependencies
array
The array of dependencies to pass to React's useEffect's second parameter. Used to determine when this hook is fired. Default: [].
Data to pass down. (Note: payload is appended to the URL for Get requests)
onCompleted
function
Callback on successful fetch
onError
function
Callback on failed fetch
transform
Transform∣function∣boolean
Overrides default formatting of payload. Setting to FALSE will prevent any transformation to payload. (Note that the Transform object contains default transformation operations).
onError
ResponseTypes
Function used to handle the response body.
dependencies
PARAM
TYPE
DESCRIPTION
dependencies
array
The array of dependencies to pass to React's useEffect's second parameter. Used to determine when this hook is fired. Default: [].
Data to pass down. (Note: payload is appended to the URL for Get requests)
onCompleted
function
Callback on successful fetch
onError
function
Callback on failed fetch
transform
Transform∣function∣boolean
Overrides default formatting of payload. Setting to FALSE will prevent any transformation to payload. (Note that the Transform object contains default transformation operations).
Data to pass down. (Note: payload is appended to the URL for Get requests)
onCompleted
function
Callback on successful fetch
onError
function
Callback on failed fetch
transform
Transform∣function∣boolean
Overrides default formatting of payload. Setting to FALSE will prevent any transformation to payload. (Note that the Transform object contains default transformation operations).