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

# Function: InitDataConsumer()

> **InitDataConsumer**(`props`: `ConsumerProps`): `ReactNode`

提供 `initData` 的 [Consumer](https://react.dev/reference/react/createContext#consumer) 组件。
需要与 [InitDataProvider](/next/zh/api/react/Components/InitDataProvider.md) 一起使用

## Parameters

| Parameter | Type            |
| --------- | --------------- |
| `props`   | `ConsumerProps` |

## Returns

`ReactNode`
