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.
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.
Most helpful comment
We could use
invariant.log
for this. Following #7226, the default log level iswarn
rather thanlog
, but you could callsetLogVerbosity("log")
to enable more verbose warnings. Note: we don't currently have any usage ofinvariant.log
, so this functionality would need to be added.