cancel function
Returned from a hook handler to stop the chain.
import { cancel } from '@dioramajs/diorama/core'callHook then returns it.
function cancel(reason?: string): CancelParameters
| Name | Type | Description |
|---|---|---|
reason? | string |
Also exported from @dioramajs/core.
Defined in packages/core/src/kernel/hooks.ts.