Skip to main content

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

T extends FetchOperationTargetType

Parameters

ParameterType

props

WithFetchStatusProps<T>

Returns

ReactElement<object, string | JSXElementConstructor<any>>

className?

optional className: string

See

FetchOperation

Defined in

editor/withFetchStatus.tsx:52