---
url: >-
  https://lit-ui-router.dev/reference/ui-router-server/ssr/interfaces/DehydrateOptions.md
---
[ui-router-server](../../index.md) / [ssr](../index.md) / DehydrateOptions

# Interface: DehydrateOptions

Defined in: [dehydrate.ts:29](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/dehydrate.ts#L29)

Options for [\`dehydrate\`](../functions/dehydrate.md).

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `shouldDehydrate?` | `readonly` | (`candidate`) => `boolean` | Decides which resolves the payload carries. It is called once for each resolve `dehydrate` would otherwise draw: declared by its state with a string token, resolved, and not `NOWAIT`. Returning `false` keeps the resolve out of the payload, unlisted, and the client re-runs it on boot as it would without a payload. Without it, every such resolve is drawn. | [dehydrate.ts:37](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/dehydrate.ts#L37) |
|  `transport?` | `readonly` | `Readonly`<`Record`<`string`, [`Transporter`](Transporter.md)<`unknown`>>> | Carries values plain JSON data can't, keyed by a name `seed` is given the same transporter under. A value that is neither plain JSON data nor claimed by one, at the top or nested in an array or plain object, lists its resolve in [\`unserializable\`](DehydrateResult.md#unserializable), and so does an `encode` that throws. | [dehydrate.ts:45](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/dehydrate.ts#L45) |
