step 11 : proses clock in, clock out
This commit is contained in:
@@ -5,6 +5,9 @@ import '../app/constant.dart';
|
||||
|
||||
final graphqlProvider = Provider.family<GraphQLClient, String>(
|
||||
(_, token) {
|
||||
final policies = Policies(
|
||||
fetch: FetchPolicy.noCache,
|
||||
);
|
||||
return GraphQLClient(
|
||||
link: (token != "")
|
||||
? HttpLink(
|
||||
@@ -17,6 +20,11 @@ final graphqlProvider = Provider.family<GraphQLClient, String>(
|
||||
Constant.baseURLGraphQl,
|
||||
),
|
||||
cache: GraphQLCache(),
|
||||
defaultPolicies: DefaultPolicies(
|
||||
watchQuery: policies,
|
||||
query: policies,
|
||||
mutate: policies,
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user