Skip to content

Commit 7655517

Browse files
EugeneZEugene Zaretskiy
andauthored
docs: Fix broken util links (#907)
* Fix broken links * Fix broken doc links Co-authored-by: Eugene Zaretskiy <ezaretskiy@attentivemobile.com>
1 parent e30b756 commit 7655517

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

docs/api/utils.mdx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,79 +8,79 @@ This is an overview over atom creators/hooks utilities that can found under `jot
88

99
## Overview
1010

11-
1. [atomWithStorage](../utils/atom-with-storage)
11+
1. [atomWithStorage](../utils/atom-with-storage.mdx)
1212

1313
The `atomWithStorage` function creates an atom with a value persisted in `localStorage` or `sessionStorage` for React or `AsyncStorage` for React Native.
1414

15-
2. [atomWithObservable](../utils/atom-with-observable)
15+
2. [atomWithObservable](../utils/atom-with-observable.mdx)
1616

1717
The `atomWithObservable` function creates an atom from a rxjs (or similar) `subject` or `observable`. Its value will be last value emitted from the stream.
1818

19-
3. [useUpdateAtom](../utils/use-update-atom)
19+
3. [useUpdateAtom](../utils/use-update-atom.mdx)
2020

2121
Use `useUpdateAtom` and write-only atoms to avoid re-render.
2222

23-
4. [useAtomValue](../utils/use-atom-value)
23+
4. [useAtomValue](../utils/use-atom-value.mdx)
2424

2525
Returns the value of the given atom.
2626

27-
5. [atomWithReset](../utils/atom-with-reset)
27+
5. [atomWithReset](../utils/atom-with-reset.mdx)
2828

2929
Creates an atom that could be reset to its `initialValue` with `useResetAtom` hook.
3030

31-
6. [useResetAtom](../utils/use-reset-atom)
31+
6. [useResetAtom](../utils/use-reset-atom.mdx)
3232

3333
Resets a Resettable atom to its initial value.
3434

35-
7. [RESET](../utils/reset)
35+
7. [RESET](../utils/reset.mdx)
3636

3737
Special value that is accepted by Resettable atoms created with `atomWithReset`, `atomWithDefault` or writable atom created with atom if it accepts `RESET` symbol.
3838

39-
8. [useReducerAtom](../utils/use-reducer-atom)
39+
8. [useReducerAtom](../utils/use-reducer-atom.mdx)
4040

4141
Use this hook to update an atom value with a reducer function.
4242

43-
9. [atomWithReducer](../utils/atom-with-reducer)
43+
9. [atomWithReducer](../utils/atom-with-reducer.mdx)
4444

4545
This is a function to create an atom with an embeded reducer function to update the value.
4646

47-
10. [atomWithDefault](../utils/atom-with-default)
47+
10. [atomWithDefault](../utils/atom-with-default.mdx)
4848

4949
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.
5050

51-
11. [atomWithHash](../utils/atom-with-hash)
51+
11. [atomWithHash](../utils/atom-with-hash.mdx)
5252

5353
This creates a new atom that is connected with URL hash.
5454

55-
12. [atomFamily](../utils/atom-family)
55+
12. [atomFamily](../utils/atom-family.mdx)
5656

5757
This will create a function that takes param and returns an atom.
5858

59-
13. [selectAtom](../utils/select-atom)
59+
13. [selectAtom](../utils/select-atom.mdx)
6060

6161
This function creates a derived atom whose value is a function of the original atom's value, determined by `selector`.
6262

63-
14. [useAtomCallback](../utils/use-atom-callback)
63+
14. [useAtomCallback](../utils/use-atom-callback.mdx)
6464

6565
This hook allows to interact with atoms imperatively.
6666

67-
15. [freezeAtom](../utils/freeze-atom)
67+
15. [freezeAtom](../utils/freeze-atom.mdx)
6868

6969
The `freezeAtom` takes an existing atom and returns a new derived atom. The value with the new derived atom will be frozen (= not mutable).
7070

71-
16. [freezeAtomCreator](../utils/freeze-atom-creator)
71+
16. [freezeAtomCreator](../utils/freeze-atom-creator.mdx)
7272

7373
Instead of create a frozen atom from an existing atom, `freezeAtomCreator` takes an atom creator function and returns a new function.
7474

75-
17. [splitAtom](../utils/split-atom)
75+
17. [splitAtom](../utils/split-atom.mdx)
7676

7777
The `splitAtom` utility is useful for when you want to get an atom for each element in a list.
7878

79-
18. [waitForAll](../utils/wait-for-all)
79+
18. [waitForAll](../utils/wait-for-all.mdx)
8080

8181
The `waitForAll` utility is a concurrency helper, which allows us to evaluate multiple async atoms.
8282

83-
19. [useHydrateAtoms](../utils/use-hydrate-atoms)
83+
19. [useHydrateAtoms](../utils/use-hydrate-atoms.mdx)
8484

8585
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.
8686

0 commit comments

Comments
 (0)