Skip to content

useClearTxIntentions

Clears all transaction intentions from the store.

Import

ts
import { useClearTxIntentions } from "@midl/executor-react";

Example

ts
const clearIntentions = useClearTxIntentions();
clearIntentions();

Parameters

NameTypeDescription
storeMidlContextStore (optional)Custom store to override the default.

Returns

NameTypeDescription
clearIntentionsfunctionFunction to clear all transaction intentions.