Replies: 1 comment
-
Solved by #306 |
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
-
Solved by #306 |
Beta Was this translation helpful? Give feedback.
-
Idea
Similar to Apollo's way of prefetching.
Should be possible to prefetch all data on the server automatically without using any getStaticProp/etc. Could be done in
_app.tsx
Since the queries have the paths and the input one could just invoke the router server side when calling to useQuery() and write it to the react-query cache.
Dummy code
References
Next steps after
And as a step two we could do something really cool, which is to provide a wrapper around
<Link>
(Blink
?) and optimistically preload queries from other routes on e.g. mouse over.Beta Was this translation helpful? Give feedback.
All reactions