Open History to see the last commit
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/types.d.ts:49
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: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/types.d.ts:20
Returns#
T
Inherited from#
subscribe#
subscribe: (observer) => Subscription & (next, error?, complete?) => Subscription;
Defined in: node_modules/.pnpm/@tanstack+store@0.11.0/node_modules/@tanstack/store/dist/types.d.ts:17