1
0
Fork 0
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:
SirStendec 2017-12-01 16:54:36 -05:00
parent cbaf4b6878
commit 428caedec1
5 changed files with 132 additions and 98 deletions

View file

@ -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);