Skip to content
Source
Sign inSign up
TanStack/store
Open History to see the last commit

InternalBaseAtom.md

86 lines1.3 KB

1---
2id: InternalBaseAtom
3title: InternalBaseAtom
4---
5​
6Defined in: [types.ts:35](https://github.com/TanStack/store/blob/main/packages/store/src/types.ts#L35)
7​
8## Extends
9​
10- [`Subscribable`](Subscribable.md)\<`T`\>.[`Readable`](Readable.md)\<`T`\>
11​
12## Extended by
13​
14- [`InternalReadonlyAtom`](InternalReadonlyAtom.md)
15​
16## Type Parameters
17​
18### T
19​
20`T`
21​
22## Properties
23​
24### \_snapshot
25​
26```ts
27_snapshot: T;
28```
29​
30Defined in: [types.ts:37](https://github.com/TanStack/store/blob/main/packages/store/src/types.ts#L37)
31​
32**`Internal`**
33​
34***
35​
36### \_update
37​
38```ts
39_update: (getValue?) => boolean;
40```
41​
42Defined in: [types.ts:39](https://github.com/TanStack/store/blob/main/packages/store/src/types.ts#L39)
43​
44**`Internal`**
45​
46#### Parameters
47​
48##### getValue?
49​
50`T` \| ((`snapshot`) => `T`)
51​
52#### Returns
53​
54`boolean`
55​
56***
57​
58### get
59​
60```ts
61get: () => T;
62```
63​
64Defined in: [types.ts:30](https://github.com/TanStack/store/blob/main/packages/store/src/types.ts#L30)
65​
66#### Returns
67​
68`T`
69​
70#### Inherited from
71​
72[`Readable`](Readable.md).[`get`](Readable.md#get)
73​
74***
75​
76### subscribe
77​
78```ts
79subscribe: (observer) => Subscription & (next, error?, complete?) => Subscription;
80```
81​
82Defined in: [types.ts:21](https://github.com/TanStack/store/blob/main/packages/store/src/types.ts#L21)
83​
84#### Inherited from
85​
86[`Subscribable`](Subscribable.md).[`subscribe`](Subscribable.md#subscribe)