---
url: "https://vueda.dev/v3/reference/api/js/use/useConfirmationController/functions/useConfirmationController.md"
title: "useConfirmationController"
---

# useConfirmationController

## Overview

Creates a ConfirmationController.

## Signature

`useConfirmationController(options)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-options">options</span> | `object` | no |  |

#### options Properties

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="param-options-noConsumerWarning">noConsumerWarning</span> | `string` |  |  | Message logged via `console.warn` when `request()`  fails closed because no consumer is registered. Callers should point developers at how to mount  a dialog for their composable; a generic message is used when omitted. |

### Returns

[ConfirmationController](/v3/reference/api/js/use/useConfirmationController/types/ConfirmationController.md)

The confirmation controller.

## Source

`client/lib/use/useConfirmationController.js:56`
