Lynx

Home > @lynx-js/genui > useAction

useAction() function

Signature:

export declare function useAction(props: ActionProps): {
  sendAction: (action: v0_9.Action) => Promise<unknown>;
};

Parameters

Parameter

Type

Description

props

ActionProps

Returns:

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

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.