ui-router-server / ssr / DehydrateOptions
Interface: DehydrateOptions
Defined in: dehydrate.ts:29
Options for `dehydrate`.
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 |
transport? | readonly | Readonly<Record<string, Transporter<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`, and so does an encode that throws. | dehydrate.ts:45 |