Skip to main content

useRemoveWidgetsListener

Functions

default()

default(canvasWidgetStates, setCanvasWidgetStates): void

Defined in: canvas/hooks/useRemoveWidgetsListener.tsx:11

Listen and react to the "remove-widgets" event.

Parameters

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

Returns

void