Skip to content

How to handle loading critical data via router? #275

Closed Answered by posva
JarvisH asked this question in Questions
Discussion options

You must be logged in to vote

Don't use create, it's too low level. Use setQueryData() instead:

queryCache.setQueryData(KEY, await graphQLClient.request(getMetadataDocument))

This is pretty much prefetching. It's not documented but it will

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JarvisH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants