Skip to main content

useUpdateSettingsListener

Functions

default()

default(setManagerWidgetStates): void

Defined in: manager/hooks/useUpdateSettingsListener.ts:14

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<Record<string, ManagerWidgetState>>>Setter for the manager widget states.

Returns

void