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
When using a Query component with a fetchPolicy of cache-only, if the query cannot be resolved from cache, I would expect error to be passed to the render prop:
<Queryquery={queryThatCantBeResolvedFromCache}fetchPolicy="cache-only">{({ loading, data, error })=>{// expect `error` to be populated here}}</Query>;
Actual outcome:
Would expect an error to be passed to render prop.
Thanks for reporting this. There hasn't been any activity here in quite some time, so we'll close this issue for now. If this is still a problem (using a modern version of Apollo Client), please let us know. Thanks!
Intended outcome:
When using a
Query
component with a fetchPolicy ofcache-only
, if the query cannot be resolved from cache, I would expecterror
to be passed to the render prop:Actual outcome:
Would expect an error to be passed to render prop.
How to reproduce the issue:
https://codesandbox.io/s/p7vrkmlkmj
Version
The text was updated successfully, but these errors were encountered: