Skip to main content

useUpdateSettingListener

Functions

default()

default(setManagerWidgetStates): void

Listen and react to the "update-setting" event.

This hook listens to the "update-setting" event and updates the per-widget setting part of the manager widget states. If the given widget ID is not in the collection, nothing will be updated.

Parameters

ParameterTypeDescription
setManagerWidgetStatesDispatch<SetStateAction<IdMap<ManagerWidgetState>>>Setter for the manager widget states.

Returns

void

Defined in

manager/hooks/useUpdateSettingListener.ts:15