Function: useErrorState()
function useErrorState(dependentSetter?: (...args: any) => void): readonly [null | ApiError, Dispatch<SetStateAction<null | ApiError>>]
Parameters
Parameter | Type |
---|---|
dependentSetter ? | (...args : any ) => void |
Returns
readonly [null
| ApiError
, Dispatch
<SetStateAction
<null
| ApiError
>>]