Add a global fetch policy config for graphql clients

This commit is contained in:
Hazem Krimi
2023-06-04 15:34:23 +01:00
parent 90ad62d41f
commit e7d1d81be0
8 changed files with 22 additions and 22 deletions
+1 -2
View File
@@ -33,8 +33,7 @@ const SupportSidebar = ({ onClose }: SupportSideBarProps) => {
query: GET_PROJECT_THREADS,
variables: {
projectId: location.pathname.split('/')[2] as string,
},
fetchPolicy: 'network-only',
}
});
setProjectThreads(threads?.data?.threads!);
}