-
Notifications
You must be signed in to change notification settings - Fork 266
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
Need a query to initialize cache when using apollo-state-link #330
Comments
@sfegsetsfe how did you configured the client (link)? |
I used the exact config from @manueliglesias (except the
|
Is this ever going to be fixed? |
@usmansbk we are still researching Apollo Link State, which at this time isn't fully supported in the SDK due to how cache can be manipulated out of the standard process. We have some ideas here and some prototype code but it will still take some time to fully support. In the meantime we recommend using the SDK without Apollo Link State. |
Follow instruction of this post
#24 (comment).
If we delete the
client.mutate(...)
part at the bottom, but do aconsole.log(client.cache.data.data)
, which supposed to hold the default value set inwithClientState
, it will be an empty object. But if we add back theclient.mutate(...)
, the default value set will appear in the `console.log(client.cache.data.data)`` call.Also, changing
client.mutate(...)
toto query the
networkStatus
field will result in errorNetwork error: Cannot read property 'networkStatus' of null
.The text was updated successfully, but these errors were encountered: