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

# Interface: DehydrateOptions

Defined in: [dehydrate.ts:21](https://github.com/simshanith/lit-ui-router/blob/94983cdc3394e721dde003188282f6209606ba22/packages/ui-router-server/src/dehydrate.ts#L21)

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:29](https://github.com/simshanith/lit-ui-router/blob/94983cdc3394e721dde003188282f6209606ba22/packages/ui-router-server/src/dehydrate.ts#L29) |
