-
-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: atomWithRefresh #2393
feat: atomWithRefresh #2393
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Size Change: +371 B (+1%) Total Size: 71.2 kB
ℹ️ View Unchanged
|
|
Playground | Link |
---|---|
React demo | https://livecodes.io?x=id/F9EGLRRN4 |
See documentations for usage instructions.
Here's how you'd use it to implement an refresh-able source of data: | ||
|
||
```js | ||
import { atomWithRefresh } from 'XXX' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import { atomWithRefresh } from 'jotai/utils'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you send a PR?
close #2379