Apollo-client: Queries invalidation logs

Created on 7 Dec 2020  路  1Comment  路  Source: apollographql/apollo-client

Is it possible to log when any query becomes invalidated? It is very difficult to understand what is wrong with my cache update operations in a big project with hundreds queries.

Most helpful comment

We could use invariant.log for this. Following #7226, the default log level is warn rather than log, but you could call setLogVerbosity("log") to enable more verbose warnings. Note: we don't currently have any usage of invariant.log, so this functionality would need to be added.

>All comments

We could use invariant.log for this. Following #7226, the default log level is warn rather than log, but you could call setLogVerbosity("log") to enable more verbose warnings. Note: we don't currently have any usage of invariant.log, so this functionality would need to be added.

Was this page helpful?
0 / 5 - 0 ratings