Open History to see the last commit
Defined in: types.ts:67
An atom that is read-only and cannot be set.
Example#
const atom = createAtom(() => 42);
// @ts-expect-error - Cannot set a readonly atom
atom.set(43);
Extends#
BaseAtom<T>
Type Parameters#
T#
T
Properties#
get#
get: () => T;
Defined in: types.ts:30
Returns#
T
Inherited from#
subscribe#
subscribe: (observer) => Subscription & (next, error?, complete?) => Subscription;
Defined in: types.ts:21