How to change async atom #2573
Answered
by
dai-shi
chengfengfengwang
asked this question in
Q&A
-
Hello, I am new to Jotai. The async read atom is great, but I don't know how to update it. Besides the atomWithRefresh, how can I push new data to an async atom? I don't want to use atomWithRefresh because the data fetch is a bit slow |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
May 25, 2024
Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chengfengfengwang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
atomWithDefault
.