Defined in: types.ts:67
An atom that is read-only and cannot be set.
const atom = createAtom(() => 42);
// @ts-expect-error - Cannot set a readonly atom
atom.set(43);
T
get: () => T;
Defined in: types.ts:30
T
subscribe: (observer) => Subscription & (next, error?, complete?) => Subscription;
Defined in: types.ts:21