Skip to content

API reference > @kontsedal/olas-core > DehydratedState

DehydratedState type ​

SSR-serializable snapshot of a root's QueryClient. Produced byroot.dehydrate() on the server; consumed bycreateRoot(def, { hydrate: state }) on the client. Spec §15, §20.9.

Signature:

typescript
type DehydratedState = {
  version: 1;
  entries: DehydratedEntry[];
};

References: DehydratedEntry

Released under the MIT License.