Type alias WithDeviceInsertionIfDoesNotExistAndSavingDataParam

WithDeviceInsertionIfDoesNotExistAndSavingDataParam: UseDeviceInsertionIfDoesNotExistAndSavingInfoParam & {
    children: JSX.Element;
    containerLinkId: number;
    deep: DeepClient;
    deviceLinkId: number | undefined | null;
    renderIfLoading: (() => JSX.Element);
    renderIfNotInserted: (() => JSX.Element);
}

Describes the parameter object for the WithDeviceInsertionIfDoesNotExistAndSavingData higher-order component.

Type declaration

  • children: JSX.Element

    The child elements to render when the device link ID exists and the loading is finished.

  • containerLinkId: number

    The ID of the container link in the Deep database.

  • deep: DeepClient

    An instance of DeepClient.

  • deviceLinkId: number | undefined | null

    The ID of the device link in the Deep database.

  • renderIfLoading: (() => JSX.Element)
      • (): JSX.Element
      • A function that returns a JSX.Element to render when the insertion operation is loading.

        Returns JSX.Element

  • renderIfNotInserted: (() => JSX.Element)
      • (): JSX.Element
      • A function that returns a JSX.Element to render when the device link ID doesn't exist.

        Returns JSX.Element

Remarks

This interface extends from UseDeviceInsertionIfDoesNotExistAndSavingInfoParam, and adds additional properties required for rendering.

Generated using TypeDoc