Function: WithFetchStatus()
WithFetchStatus<
T
>(props
):ReactElement
<object
,string
|JSXElementConstructor
<any
>>
Decorator component that styles the child element based on the fetching status of the graph operation target.
Depending on the fetch status, the child element will be rendered with an additional CSS class:
- none or finished - no additional classes;
- loading -
reactodia-fetch-status--loading
; - failed -
reactodia-fetch-status--error
.
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type |
---|---|
|
Returns
ReactElement
<object
, string
| JSXElementConstructor
<any
>>
className?
optional
className:string