Skip to main content

withCompatMode

Callable

  • withCompatMode<P>(Component: ComponentType<P>): { CompatComponent: ForwardRefExoticComponent<RefAttributes<unknown>>; Component: ForwardRefExoticComponent<RefAttributes<unknown>>; appVersion: undefined | string; buildEnv: undefined | string; environment: undefined | string; requiredVersion: any; version: number }

  • Type parameters

    • P: Props

    Parameters

    • Component: ComponentType<P>

    Returns { CompatComponent: ForwardRefExoticComponent<RefAttributes<unknown>>; Component: ForwardRefExoticComponent<RefAttributes<unknown>>; appVersion: undefined | string; buildEnv: undefined | string; environment: undefined | string; requiredVersion: any; version: number }

    • CompatComponent: ForwardRefExoticComponent<RefAttributes<unknown>>
    • Component: ForwardRefExoticComponent<RefAttributes<unknown>>
    • appVersion: undefined | string
    • buildEnv: undefined | string
    • environment: undefined | string
    • requiredVersion: any
    • version: number