Skip to content

DehydrateOptions · Next.js server API

type DehydrateOptions<TSchema> = object;

Options for reading a serializable snapshot from a container.

Type Parameter

TSchema extends HydrationSchema

readonly container: Container;

Container that owns the hydratable state entities.


readonly schema: TSchema;

Hydratable tokens keyed by snapshot field name.