mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-17 02:16:54 +00:00
Clean up the settings for the directory features.
This commit is contained in:
parent
cbaf4b6878
commit
428caedec1
5 changed files with 132 additions and 98 deletions
|
@ -196,6 +196,15 @@ export default class Apollo extends Module {
|
|||
}
|
||||
|
||||
|
||||
maybeRefetch(operation) {
|
||||
const query = this.getQuery(operation);
|
||||
if ( ! query || ! query.lastResult || query.lastResult.stale )
|
||||
return;
|
||||
|
||||
query.refetch();
|
||||
}
|
||||
|
||||
|
||||
ensureQuery(operation, predicate, delay = 500, retry_wait = 120000) {
|
||||
const query = this.getQuery(operation);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue