Skip to main content

Atom

还没翻译译自英文(tanstack.com)本页 21 段都还没译

Defined in: types.ts:42

Extends

Type Parameters

T

T

Properties

get

get: () => T;

Defined in: types.ts:30

Returns

T

Inherited from

BaseAtom.get


set

set: (fn) => void & (value) => void;

Defined in: types.ts:44

Sets the value of the atom using a function.


subscribe

subscribe: (observer) => Subscription & (next, error?, complete?) => Subscription;

Defined in: types.ts:21

Inherited from

BaseAtom.subscribe