-
Notifications
You must be signed in to change notification settings - Fork 109
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
fetchPolicy="network-only" still returns data from the cache #81
Comments
@bradleyayers it seems it's an issue with apollo-client which is already fixed in master: |
Apollo Client 2.5.0 is already released. @bradleyayers could you please confirm if it solved the problem for you? |
still happening on the latest client. 2.5.2, definitely an issue with apollo-client |
Who found a workaround for this? |
I need a solution for this too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like even when I'm using
network-only
that data from the cache is being returned immediately. I would have expected that the rendering phases would be:Instead what happens is that if data from the cache exists, at render 1
data
will actually be populated with the cache data.The React Apollo docs make it clear this should never happen:
For now I'm using a wrapper that returns
{}
whenloading=true
andfetchPolicy=no-cache
orfetchPolicy=network-only
.The text was updated successfully, but these errors were encountered: