This is the dev preview website. Check out the document at lynxjs.org

Home > @lynx-js/genui > useResolvedProps

useResolvedProps() function

Signature:

export declare function useResolvedProps(properties: Record<string, unknown>, surface: Surface | undefined, dataContextPath?: string, processor?: MessageProcessor, functions?: readonly CatalogFunctionEntry[]): readonly [Record<string, unknown>, (key: string, value: unknown) => void];

Parameters

Parameter

Type

Description

properties

Record<string, unknown>

surface

Surface | undefined

dataContextPath

string

(Optional)

processor

MessageProcessor

(Optional)

functions

readonly CatalogFunctionEntry[]

(Optional)

Returns:

readonly [Record<string, unknown>, (key: string, value: unknown) => void]