Package: @effect/atom-react
Module: ReactHydration
Provides a React hydration boundary that loads dehydrated Atom values into the current Atom registry.
When to use
Use to apply dehydrated Atom state to a React subtree that reads from the
nearest RegistryContext.
Details
New Atom values are hydrated during render so descendants can read them immediately, while values for existing Atoms are deferred until after commit so transition data does not update the current UI before React accepts it.
See
Hydration.dehydrate for producing dehydrated Atom stateHydration.hydrate for lower-level non-React hydrationSignature
declare const HydrationBoundary: React.FC<HydrationBoundaryProps>
Since v4.0.0