Graphql-flutter: The caching is not controlled by ErrorPolicy

Created on 4 Sep 2019  路  2Comments  路  Source: zino-app/graphql-flutter

Why the caching is not controlled by ErrorPolicy ?

See here:
https://github.com/zino-app/graphql-flutter/blob/master/packages/graphql/lib/src/core/query_manager.dart#L115-L121

Is this to be expected?

bug cache

Most helpful comment

I guess according to the apollo docs it is not expected. In fact, this is probably a fairly critical issue

By default, the error policy treats any GraphQL Errors as network errors and ends the request chain. It doesn't save any data in the cache, and renders your UI with the error prop to be an ApolloError

All 2 comments

I guess according to the apollo docs it is not expected. In fact, this is probably a fairly critical issue

By default, the error policy treats any GraphQL Errors as network errors and ends the request chain. It doesn't save any data in the cache, and renders your UI with the error prop to be an ApolloError

Fixed by #754

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thanhbinh84 picture thanhbinh84  路  4Comments

milind-solutelabs picture milind-solutelabs  路  3Comments

juicycleff picture juicycleff  路  4Comments

smkhalsa picture smkhalsa  路  3Comments

sjmcdowall picture sjmcdowall  路  4Comments