Function WaitView

Renders a component with loading, content, and error states based on a condition.

  • Type Parameters

    • P extends unknown = object

      The type of the payload.

    • T extends unknown = object

      The type of the condition result.

    Parameters

    • __namedParameters: IWaitViewProps<P, T>

    Returns null | Element

    The rendered component.