Replies: 1 comment 7 replies
-
Yeah I think this is a good idea. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a bit inspired by this issue:
#1296
I wanted to work around it by just passing the result from the bootstrap fetch as initialData to useQuery and just disable the query as long as the data is not yet loaded.
But it seems the initialData function is run immediately, even if the query is still
enabled: false
.Would it make sense to run the initialData function only when the query is first enabled, so that we can make it dependent on a "previous" query?
Here would be an example (v3): https://codesandbox.io/s/dependent-initial-data-y39v6
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions