Version: v11.0.0
Environment
#
Relay Environment ProviderIn order to render Relay components, you need to render a RelayEnvironmentProvider
component at the root of the app:
- The
RelayEnvironmentProvider
takes an environment, which it will make available to all descendant Relay components, and which is necessary for Relay to function.
#
Accessing the Relay EnvironmentIf you want to access the current Relay Environment within a descendant of a RelayEnvironmentProvider
component, you can use the useRelayEnvironment
Hook:
Is this page useful?