> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: useGlobalPropsChanged()

> **useGlobalPropsChanged**(`callback`: (`data`: [`GlobalProps`](/next/api/react/Types/GlobalProps.md)) => `void`): `void`

A React Hooks for you to get notified when `__globalProps` changed.

## Parameters

| Parameter  | Type                                                                      |
| ---------- | ------------------------------------------------------------------------- |
| `callback` | (`data`: [`GlobalProps`](/next/api/react/Types/GlobalProps.md)) => `void` |

## Returns

`void`

## Example

```ts
function App() {
  useGlobalPropsChanged((data) => {
    lynx.__globalProps.someProperty // can use lynx.__globalProps
    data.someProperty // can use data
  })
}
```
