You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
upgrade an existing Next.js application that has local state to use react-apollo 3.0
I created a repo using nextjs with-apollo example (which was updated to use app/react-hooks and ssr, see below.
I expected that as in previous version of react-apollo, when querying only local data, the loading will always return false and I will get the data synchronously
Actual outcome:
When querying only local data for the first render useQuery returns loading true and no data
Intended outcome:
upgrade an existing Next.js application that has local state to use react-apollo 3.0
I created a repo using nextjs with-apollo example (which was updated to use app/react-hooks and ssr, see below.
I expected that as in previous version of react-apollo, when querying only local data, the loading will always return false and I will get the data synchronously
Actual outcome:
When querying only local data for the first render useQuery returns loading true and no data
this is not consistent with the apollo docs :
How to reproduce the issue:
https://codesandbox.io/embed/github/kedarguy/apollo-3.0-next-local-state-server-side-bug-reproduction/tree/master/?fontsize=14
Versions
System:
OS: Linux 5.0 Ubuntu 18.04.3 LTS (Bionic Beaver)
Binaries:
Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
Yarn: 1.16.0 - ~/.nvm/versions/node/v10.15.3/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm
Browsers:
Chrome: 76.0.3809.100
Firefox: 68.0.2
npmPackages:
apollo-boost: 0.4.4 => 0.4.4
Looking forward to be able to upgrade to the awesome apollo-hooks :)
The text was updated successfully, but these errors were encountered: