Documents / @faasjs/react / FaasDataWrapperProps
Type Alias: FaasDataWrapperProps<PathOrData>
FaasDataWrapperProps<
PathOrData
>:object
Type Parameters
• PathOrData extends FaasAction
Type declaration
action
action:
PathOrData
|string
baseUrl?
optional
baseUrl:BaseUrl
children?
optional
children:React.ReactElement
<Partial
<FaasDataInjection
<PathOrData
>>>
data?
optional
data:FaasData
<PathOrData
>
use custom data, should work with setData
fallback?
optional
fallback:JSX.Element
|false
params?
optional
params:FaasParams
<PathOrData
>
setData?
optional
setData:React.Dispatch
<React.SetStateAction
<FaasData
<PathOrData
>>>
use custom setData, should work with data
onDataChange()?
Parameters
• args: FaasDataInjection
<PathOrData
>
Returns
void
render()?
Parameters
• args: FaasDataInjection
<PathOrData
>
Returns
Element
| Element
[]