invalidateQuery method
Marks one query stale: its in-flight answer is discarded and, when it is watched, it refetches in the next batch.
Implementation
void invalidateQuery(OperationMeta meta, TagContext args) {
final entry = registry.get(key(meta, args));
if (entry == null) return;
observer?.call(QueryInvalidated(key: entry.key, matched: const {}));
_stale(entry);
registry.markStale(entry);
}