Lynx

genui / a2ui / useAction

useAction()

function useAction(props: ActionProps): object

Create a sendAction callback that resolves dynamic action payload values and dispatches user events or function calls through the current processor.

Parameters

ParameterType
propsActionProps

Returns

object

sendAction()

sendAction: (action: v0_9.Action) => Promise<unknown>;

Parameters

ParameterType
actionv0_9.Action

Returns

Promise<unknown>

Defined in

@lynx-js/genui/a2ui/src/react/useAction.ts:26

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.