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

Instance of CacheMissException #597

Closed
Faiyyaz opened this issue Apr 8, 2020 · 3 comments
Closed

Instance of CacheMissException #597

Faiyyaz opened this issue Apr 8, 2020 · 3 comments
Labels
⌛ reproduction needed Issue is subtle and requires a true accessible reproduction to debug

Comments

@Faiyyaz
Copy link

Faiyyaz commented Apr 8, 2020

Describe the bug
A clear and concise description of what the bug is.

If i enable cache and i switch off the network after fetching the data and try to fetch the data again i get CacheMissException instead of the cached response

To Reproduce
Steps to reproduce the behavior:

  1. Set fetchPolicy: FetchPolicy.cacheAndNetwork,
  2. Call a graphql Query
  3. After that change the fetch policy to fetchPolicy: FetchPolicy.cacheOnly,
  4. You will see the error

Expected behavior
A clear and concise description of what you expected to happen.
The response cached should come and its fine that we are getting error for no network

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • OS: iOS
  • Version 13.3
@freewebwithme
Copy link

Same happens to me in Android(graphql-flutter 3.0.0)

@SwannLV
Copy link

SwannLV commented May 5, 2020

Same here! 🙏

I am using a fragment in a parent query. Then this fragment is also used in a child (deeper in the widgets tree) query, with cacheOnly policy.

@micimize micimize added the ⌛ reproduction needed Issue is subtle and requires a true accessible reproduction to debug label Oct 7, 2020
@micimize
Copy link
Collaborator

micimize commented Oct 7, 2020

This is likely solved by the cache rework in 4.0.0-beta.1 (#648). Please try and repro there, and if there's still an issue:

  • a reproduction or test case will help a lot
  • we can maybe troubleshoot in the discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌛ reproduction needed Issue is subtle and requires a true accessible reproduction to debug
Projects
None yet
Development

No branches or pull requests

4 participants