Skip to content

Commit

Permalink
docs: update atomWithRefresh import path (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonheekim0118 authored Jan 28, 2025
1 parent a36209f commit 6de8360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/utilities/resettable.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Passing one or more arguments to `set` will call "write" function.
Here's how you'd use it to implement an refresh-able source of data:

```js
import { atomWithRefresh } from 'XXX'
import { atomWithRefresh } from 'jotai/utils'
const postsAtom = atomWithRefresh((get) =>
fetch('https://jsonplaceholder.typicode.com/posts').then((r) => r.json()),
Expand Down

0 comments on commit 6de8360

Please sign in to comment.