Overview
TheuseWidgetGlobal hook provides access to individual global properties from the widget runtime. This is a low-level hook that other convenience hooks are built upon.
Import
Signature
Parameters
The global property key to read (e.g.,
'theme', 'locale', 'maxHeight')Returns
The current value of the global property, ornull if not available. Automatically updates when the value changes.
Usage
Most developers should use the convenience hooks like
useTheme(), useLocale(), etc. instead of calling useWidgetGlobal() directly.