Documents / Interface: FaasDataInjection<Data>
Interface: FaasDataInjection<Data>
Injects FaasData props.
Type parameters
Name | Type |
---|---|
Data | any |
Table of contents
Properties
Methods
Properties
action
• action: any
data
• data: Data
error
• error: any
loading
• loading: boolean
params
• params: Record
<string
, any
>
promise
• promise: Promise
<Response
<Data
>>
setData
• setData: Dispatch
<SetStateAction
<Data
>>
setError
• setError: Dispatch
<any
>
setLoading
• setLoading: Dispatch
<SetStateAction
<boolean
>>
setPromise
• setPromise: Dispatch
<SetStateAction
<Promise
<Response
<Data
>>>>
Methods
reload
▸ reload(params?
): Promise
<Response
<Data
>>
Parameters
Name | Type |
---|---|
params? | Record <string , any > |
Returns
Promise
<Response
<Data
>>