Expand description
interface PersistConstructor<T> {
initial: T;
key: string;
storage: PersistStorage;
deserialize?(value: string): T | null;
serialize?(value: T): string;
}
Properties§
§
§
§
initial: T
Initial value
key: string
The key to use in the storage
storage: PersistStorage
The web storage to use
Args for creating a persisted cell.
See persist