We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7247c05 commit 594c5deCopy full SHA for 594c5de
lib/models/auth.dart
@@ -1,7 +1,6 @@
1
import 'dart:convert';
2
import 'dart:async';
3
import 'package:ferry/ferry.dart';
4
-import 'package:git_touch/utils/nil_store.dart';
5
// import 'package:in_app_review/in_app_review.dart';
6
import 'package:universal_io/io.dart';
7
import 'package:git_touch/models/bitbucket.dart';
@@ -703,7 +702,10 @@ class AuthModel with ChangeNotifier {
703
702
_apiPrefix + '/graphql',
704
defaultHeaders: {HttpHeaders.authorizationHeader: 'token $token'},
705
),
706
- cache: Cache(store: NilStore()),
+ // https://ferrygraphql.com/docs/fetch-policies#default-fetchpolicies
+ defaultFetchPolicies: {
707
+ OperationType.query: FetchPolicy.NetworkOnly,
708
+ },
709
);
710
}
711
lib/utils/nil_store.dart
0 commit comments