Skip to content

useClearTxIntentions

Clear all transaction intentions from the store

Import

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

Example

ts
const clearTxIntentions = useClearTxIntentions();

clearTxIntentions();

Returns

() => void - A function to clear all transaction intentions from the store