Skip to content

Query is briefly fetching = true after SSR restoreData #2006

Answered by JoviDeCroock
sheldonbaker asked this question in Q&A
Discussion options

You must be logged in to vote

That should not be the case as restoreData happens synchronous. There are a few options why this behavior could arise

  • during your ssr you rendered the loading state and urql corrects post-hydration
  • you have an async exchange before the ssr-exchange
  • you call restoreData after hydration/render (unlikely as I guess this would be unpredictable in render timing)

Maybe I'm overlooking something vue-related but I haven't ran into this issue myself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sheldonbaker
Comment options

Answer selected by sheldonbaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants