Expand description
interface Cell<T> {
get(): T;
set(value: T): void;
subscribe(
callback: (value: T) => void,
notifyImmediately?: boolean,
): () => void;
}interface Cell<T> {
get(): T;
set(value: T): void;
subscribe(
callback: (value: T) => void,
notifyImmediately?: boolean,
): () => void;
}
A light weight storage wrapper around a value that can be subscribed to for changes
Created via
cell()