createTxHooks
FunctionSignature
function createTxHooks(): TxHooksHandle;core/src/tx-hooks/tx-hooks.ts:261
Create a new tx hooks handle.
Returns txHooks (carried in a state provider's transaction context, where the provider's
onTransactionCommit and onTransactionRollback register on them), flush (call after
commit), and discard (call on rollback).