Skip to main content

useRenderWidgetListener

Functions

default()

default(canvasWidgetStates, setCanvasWidgetStates): void

Defined in: canvas/hooks/useRenderWidgetListener.tsx:23

Listen and react to the "render-widget" event.

Parameters

ParameterTypeDescription
canvasWidgetStatesRecord<string, CanvasWidgetState>Canvas widget states.
setCanvasWidgetStatesDispatch<SetStateAction<Record<string, CanvasWidgetState>>>Setter for the canvas widget states.

Returns

void