dehydrate
functionsignature
dehydrate(store, options): stringSerializes a store for handoff, for example from a server render to the client.
Parameters
| Name | Type | Description |
|---|---|---|
store | Pick<PersistableStore, "getState"> |
| Name | Type | Description |
|---|---|---|
options | Pick<PersistOptions, "version" | "slices"> |
Returns
string