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

[feature] Add way to resolve a query fetch only from local cache #41

Closed
zth opened this issue Apr 22, 2020 · 1 comment
Closed

[feature] Add way to resolve a query fetch only from local cache #41

zth opened this issue Apr 22, 2020 · 1 comment

Comments

@zth
Copy link
Owner

zth commented Apr 22, 2020

Mimicking Query.fetch, but instead of fetching from the server, only check the cache. This isn't "native" to Relay (Relay does not provide a fetchQuery that checks the cache out of the box), so it'll need some code.

One way is to just add ~checkCache=? to Query.fetch.

@zth zth changed the title [feature] Add way to resolve a query only from local cache [feature] Add way to resolve a query fetch only from local cache Apr 22, 2020
@zth
Copy link
Owner Author

zth commented Jul 12, 2020

Partially solved in #76 which allows for using Query.fetch to prefer the cache/store before the network.

@zth zth closed this as completed Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant