step 11 : proses clock in, clock out

This commit is contained in:
sindhu
2024-01-26 15:10:36 +07:00
parent 1af974881a
commit c551ee2cdb
16 changed files with 1590 additions and 712 deletions

View File

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