Skip to content

The open alternative to Salesforce, designed for AI.

Update cache policy (#11732)

Félix Malfaitc66b7afefb95
diff --git a/packages/twenty-front/src/modules/apollo/hooks/useApolloFactory.ts b/packages/twenty-front/src/modules/apollo/hooks/useApolloFactory.ts
index 8303dab65cd..54fb9ce5ff4 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<Options<any>> = {}) => {
}),
},
defaultOptions: {
- query: {
- fetchPolicy: 'cache-first',
+ watchQuery: {
+ fetchPolicy: 'cache-and-network',
},
},
connectToDevTools: isDebugMode,