Skip to content

useConfirmationController ​

Overview ​

Creates a ConfirmationController.

Signature ​

useConfirmationController(options)

Parameters ​

NameTypeRequiredDescription
optionsobjectno

options Properties ​

NameTypeRequiredDefaultDescription
noConsumerWarningstringMessage 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

The confirmation controller.

Source ​

client/lib/use/useConfirmationController.js:56