Documents / @faasjs/react / useFaasOptions
Type Alias: useFaasOptions<PathOrData>
useFaasOptions<
PathOrData
>:object
Type Parameters
• PathOrData extends FaasAction
Type declaration
baseUrl?
optional
baseUrl:BaseUrl
data?
optional
data:FaasData
<PathOrData
>
debounce?
optional
debounce:number
Send the last request after milliseconds
params?
optional
params:FaasParams
<PathOrData
>
setData?
optional
setData:React.Dispatch
<React.SetStateAction
<FaasData
<PathOrData
>>>
skip?
optional
skip:boolean
| (params
) =>boolean
If skip is true, the request will not be sent.
However, you can still use reload to send the request.