Expand description
interface Persist<T> {
clear(): void;
disable(): void;
get(): T;
init(initial?: T): T;
set(value: T): void;
subscribe(
callback: (value: T) => void,
notifyImmediately?: boolean,
): () => void;
}
A cell that also persists its value