Skip to content

Commit

Permalink
docs: fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
BANOnotIT committed Jan 6, 2024
1 parent 7339dc3 commit fc549e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/content/docs/package/async.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const fetchList = reatomAsync(
onConnect(fetchList.dataAtom, fetchList)
```

What this code do? When you connect to `fetchList.dataAtom` it will automatically call `fetchList` action. Connection could appear in any place of your application, by `ctx.subscribe(fetchList.dataAtom, cb)` or by using `useAtom(fetchList.dataAtom)` hook from [@reatom/npm-react](/adapter/npm-react). Even by a different atom.
What this code do? When you connect to `fetchList.dataAtom` it will automatically call `fetchList` action. Connection could appear in any place of your application, by `ctx.subscribe(fetchList.dataAtom, cb)` or by using `useAtom(fetchList.dataAtom)` hook from [@reatom/npm-react](/package/npm-react). Even by a different atom.

```ts
export const filteredListAtom = atom(
Expand Down
2 changes: 1 addition & 1 deletion packages/async/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const fetchList = reatomAsync(
onConnect(fetchList.dataAtom, fetchList)
```

What this code do? When you connect to `fetchList.dataAtom` it will automatically call `fetchList` action. Connection could appear in any place of your application, by `ctx.subscribe(fetchList.dataAtom, cb)` or by using `useAtom(fetchList.dataAtom)` hook from [@reatom/npm-react](https://www.reatom.dev/adapter/npm-react). Even by a different atom.
What this code do? When you connect to `fetchList.dataAtom` it will automatically call `fetchList` action. Connection could appear in any place of your application, by `ctx.subscribe(fetchList.dataAtom, cb)` or by using `useAtom(fetchList.dataAtom)` hook from [@reatom/npm-react](https://www.reatom.dev/package/npm-react). Even by a different atom.

```ts
export const filteredListAtom = atom(
Expand Down

0 comments on commit fc549e4

Please sign in to comment.