For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/react.globalpropsconsumer.md.
这是开发预览网站。请访问正式文档 lynx-stack.dev

Home > @lynx-js/react > GlobalPropsConsumer

GlobalPropsConsumer variable

The Consumer Component that provide lynx.__globalProps. Only needed with globalPropsMode: 'event', together with GlobalPropsProvider; in the default 'reactive' mode it calls children with lynx.__globalProps directly and updates come from a full re-render.

Signature:

GlobalPropsConsumer: Consumer<GlobalProps>