From c66b7afefb9505ca4c8708d9f0c9c716807b7ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Fri, 25 Apr 2025 11:18:48 +0200 Subject: [PATCH] Update cache policy (#11732) I couldn't reproduce https://github.com/twentyhq/twenty/issues/9299#issuecomment-2576868142 anymore Closes #4914 --- .../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 8303dab65..54fb9ce5f 100644 --- a/packages/twenty-front/src/modules/apollo/hooks/useApolloFactory.ts +++ b/packages/twenty-front/src/modules/apollo/hooks/useApolloFactory.ts @@ -57,8 +57,8 @@ export const useApolloFactory = (options: Partial> = {}) => { }), }, defaultOptions: { - query: { - fetchPolicy: 'cache-first', + watchQuery: { + fetchPolicy: 'cache-and-network', }, }, connectToDevTools: isDebugMode,