Replies: 2 comments
-
Wow, I would say you are doing it very well. I don't see any issues, tbh. I have some comments:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Great comments, I think the current API is enough and proper, but the default value looks like a good idea. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to start a discussion around the
jotai/query
integration and get some conversion around how it should be framed and built. I recently refactored all the state to use jotai + atomWithQuery for this site -> https://stacking.club which is a next.js based app.I really love the integration with react-query, however I had to jump through some hoops to get a reliable and good experience with SSR.
Below I've included 3 code snippets:
atomFamilyWithQuery
I'm wondering if we should change the API of atomWithQuery to make this easier for folks, or to have some of this behavior baked in? cc @dai-shi @Aslemammad
atomFamilyWithQuery
Usage
In a next.js page
Beta Was this translation helpful? Give feedback.
All reactions