effect-io-ai

Package: @effect/atom-react
Module: RegistryContext

RegistryContext.RegistryContext

Provides a React context that supplies the AtomRegistry used by Atom hooks and hydration helpers, defaulting to a standalone registry when no provider is present.

When to use

Use to supply an existing AtomRegistry through React context when hooks or hydration helpers need to share registry state that is managed outside RegistryProvider.

See

Signature

declare const RegistryContext: React.Context<AtomRegistry.AtomRegistry>

Source

Since v4.0.0