AdaptablePersistStateFunction
Function that handles persisting state to storage systems (localStorage, server, etc.).
Called after saveState() to store the prepared state.
This is the place to apply any custom storage format (envelope, compression, encryption, etc.); the matching loadState() is expected to undo it.
TypeScript
export interfaceCalls
TypeScript
(state: AdaptablePersistentState, adaptableStateFunctionConfig: AdaptableStateFunctionConfig): Promise<unknown>;Parameters
| Parameter | Type |
|---|---|
| state | AdaptablePersistentState |
| adaptableStateFunctionConfig | AdaptableStateFunctionConfig |
Returns
Promise<unknown>