effect-io-ai

Package: @effect/atom-react
Module: ReactHydration

ReactHydration.HydrationBoundary

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

Signature

declare const HydrationBoundary: React.FC<HydrationBoundaryProps>

Source

Since v4.0.0