-
-
Notifications
You must be signed in to change notification settings - Fork 607
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
RFC: Add atomWithRefresh
in jotai/utils
#2379
Comments
How could we incorporate debouncing or throttling into atomWithRefresh? |
I think it's the out of the scope of atomWithRefresh or even Jotai library, which means it's a good opportunity for Jotai Labs and Jotai ecosystem. |
#2393 supports |
Accepted and #2393 is ready. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
atomWithRefresh
has been a recipe, not a util.We wanted to understand various use cases and thought the naive implementation was somewhat limited. My hesitation is also it can be overused, but that's probably a doc issue.
It's been a while and it seems the basic
atomWithRefresh
seems valuable. #849 (comment)There might be several implementation ideas, like using a symbol like
atomWithReset
if that helps.So, here's an RFC. Should we have
atomWithRefresh
injotai/utils
? 👍 / 👎The text was updated successfully, but these errors were encountered: