Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading state on Server Side Rendering #6733

Closed
correttojs opened this issue Jul 29, 2020 · 2 comments
Closed

Loading state on Server Side Rendering #6733

correttojs opened this issue Jul 29, 2020 · 2 comments

Comments

@correttojs
Copy link

Intended outcome:
Server side rendering with extracted cache

Actual outcome:
The useQuery hook returns loading:true state

How to reproduce the issue:

  • create an apollo-client instance
  • execute a query using apollo.query
  • extract the cache
  • create an apollo-client instance passing the extracted state
  • run the same query with useQuery

Expected: loading property is false
Actual: loading property is true, data is populated

Versions
@apollo/client 3.0.2

@benjamn
Copy link
Member

benjamn commented Jul 29, 2020

You may want to update to @apollo/client@3.1.1, which includes #6710.

@benjamn benjamn added 🏓 awaiting-contributor-response requires input from a contributor 📟 regression labels Jul 29, 2020
@benjamn benjamn added this to the Post 3.0 milestone Jul 29, 2020
@correttojs
Copy link
Author

thank you, with the latest version it worked

@benjamn benjamn removed the 🏓 awaiting-contributor-response requires input from a contributor label Jul 29, 2020
@benjamn benjamn closed this as completed Jul 29, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants