Arc.React.MVVM
    Preparing search index...

    Function useDialog

    • Use a dialog request for showing a dialog, similar to useDialog.

      Type Parameters

      • TProps extends object = object
      • TResponse = object

      Parameters

      • requestType: Constructor<TProps>

        Type of request to use that represents a request that will be made by your view model.

      • DialogComponent: ComponentType<TProps>

        The dialog component to render.

      Returns [FC<TProps>, ShowDialog<TProps, TResponse>]

      A tuple with a component to use for rendering the dialog.