From 8c1b9bf540229bee8113bf6d21d555512998e717 Mon Sep 17 00:00:00 2001 From: Weiko Date: Thu, 9 Jan 2025 14:04:59 +0100 Subject: [PATCH] Revert "Change Apollo cache policy" (#9480) Reverts twentyhq/twenty#9296 until we implement a fix for https://github.com/twentyhq/twenty/issues/9299#issuecomment-2576868142 --- .../twenty-front/src/modules/apollo/hooks/useApolloFactory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/twenty-front/src/modules/apollo/hooks/useApolloFactory.ts b/packages/twenty-front/src/modules/apollo/hooks/useApolloFactory.ts index 2b72e2c9a..104364957 100644 --- a/packages/twenty-front/src/modules/apollo/hooks/useApolloFactory.ts +++ b/packages/twenty-front/src/modules/apollo/hooks/useApolloFactory.ts @@ -54,8 +54,8 @@ export const useApolloFactory = (options: Partial> = {}) => { }), }, defaultOptions: { - watchQuery: { - fetchPolicy: 'cache-and-network', + query: { + fetchPolicy: 'cache-first', }, }, connectToDevTools: isDebugMode,