Skip to main content

useRemoveWidgetsListener

Functions

default()

default(canvasWidgetStates, setCanvasWidgetStates): void

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

Parameters

ParameterTypeDescription
canvasWidgetStatesIdMap<CanvasWidgetState>Canvas widget states.
setCanvasWidgetStatesDispatch<SetStateAction<IdMap<CanvasWidgetState>>>Setter for the canvas widget states.

Returns

void

Defined in

canvas/hooks/useRemoveWidgetsListener.tsx:12