Function: WithFetchStatus()
WithFetchStatus<
T>(props):ReactElement<{className?:string; },string|JSXElementConstructor<any>>
Defined in: editor/withFetchStatus.tsx:52
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<{ className?: string; }, string | JSXElementConstructor<any>>