You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `atomWithStorage` function creates an atom with a value persisted in `localStorage` or `sessionStorage` for React or `AsyncStorage` for React Native.
The `atomWithObservable` function creates an atom from a rxjs (or similar) `subject` or `observable`. Its value will be last value emitted from the stream.
18
18
19
-
3.[useUpdateAtom](../utils/use-update-atom)
19
+
3.[useUpdateAtom](../utils/use-update-atom.mdx)
20
20
21
21
Use `useUpdateAtom` and write-only atoms to avoid re-render.
22
22
23
-
4.[useAtomValue](../utils/use-atom-value)
23
+
4.[useAtomValue](../utils/use-atom-value.mdx)
24
24
25
25
Returns the value of the given atom.
26
26
27
-
5.[atomWithReset](../utils/atom-with-reset)
27
+
5.[atomWithReset](../utils/atom-with-reset.mdx)
28
28
29
29
Creates an atom that could be reset to its `initialValue` with `useResetAtom` hook.
30
30
31
-
6.[useResetAtom](../utils/use-reset-atom)
31
+
6.[useResetAtom](../utils/use-reset-atom.mdx)
32
32
33
33
Resets a Resettable atom to its initial value.
34
34
35
-
7.[RESET](../utils/reset)
35
+
7.[RESET](../utils/reset.mdx)
36
36
37
37
Special value that is accepted by Resettable atoms created with `atomWithReset`, `atomWithDefault` or writable atom created with atom if it accepts `RESET` symbol.
38
38
39
-
8.[useReducerAtom](../utils/use-reducer-atom)
39
+
8.[useReducerAtom](../utils/use-reducer-atom.mdx)
40
40
41
41
Use this hook to update an atom value with a reducer function.
This is a function to create an overwritable primitive atom. Its default value can be specified with a read function instead of a static initial value.
50
50
51
-
11.[atomWithHash](../utils/atom-with-hash)
51
+
11.[atomWithHash](../utils/atom-with-hash.mdx)
52
52
53
53
This creates a new atom that is connected with URL hash.
54
54
55
-
12.[atomFamily](../utils/atom-family)
55
+
12.[atomFamily](../utils/atom-family.mdx)
56
56
57
57
This will create a function that takes param and returns an atom.
58
58
59
-
13.[selectAtom](../utils/select-atom)
59
+
13.[selectAtom](../utils/select-atom.mdx)
60
60
61
61
This function creates a derived atom whose value is a function of the original atom's value, determined by `selector`.
The primary use case for `useHydrateAtoms` are SSR apps like Next.js, where an initial value is e.g. fetched on the server, which can be passed to a component by props.
0 commit comments