Replies: 2 comments
-
I wonder if an API for {
initialData: (get) => get(someOtherAtom); // this would be pre-populated via Provider for SSR uses
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
I know this would be useful, but my feeling is this seems domain-specific application code. (btw, I think we should first implement "error handling" in atomWithQuery.) |
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 use this in almost all of my projects and was curious if we should make it an official utility? this is an evolution of #412.
This version would need to handle initialData for SSR uses.
@dai-shi should i make a PR?
and an example of how this is used
and in a component
Beta Was this translation helpful? Give feedback.
All reactions