Skip to content

useWidgetConfig

@wuespace/telestion / index / useWidgetConfig

useWidgetConfig<T>(): T

Retrieves the widget configuration from the widgetConfigContext.

Type parameters

T

The type of the widget configuration.

Returns

T

The widget configuration retrieved from the widgetConfigContext.

Throws

Error Throws an error if useWidgetConfig is not used within a WidgetConfigProvider.