How active queries become inactive

i’m not meaning aborting queries that are currently fetching data, but rather the other type of “activeness” – when cache gets updated by another query with fields this active query is serving. So my question is how such an idle active query can implicitly or explicitly get inactive. I’ve tried to find answers in the docs, but failed…