From 46a1f8737d18dbff48223dacf39bf9980b81f232 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Wed, 26 Mar 2025 06:39:56 -0500 Subject: [PATCH] busted --- App.tsx | 15 ++++++++++++++- constants/query-client.ts | 6 +++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/App.tsx b/App.tsx index 90152060..1089dd4c 100644 --- a/App.tsx +++ b/App.tsx @@ -15,6 +15,7 @@ import { createWorkletRuntime } from 'react-native-reanimated'; import { SafeAreaProvider } from 'react-native-safe-area-context'; import { NavigationContainer } from '@react-navigation/native'; import { JellifyDarkTheme, JellifyLightTheme } from './components/theme'; +import uuid from "react-native-uuid" export const backgroundRuntime = createWorkletRuntime('background'); @@ -58,8 +59,20 @@ export default function App(): React.JSX.Element { diff --git a/constants/query-client.ts b/constants/query-client.ts index 035cf217..cf492ce8 100644 --- a/constants/query-client.ts +++ b/constants/query-client.ts @@ -14,7 +14,11 @@ import { QueryClient } from "@tanstack/react-query"; export const queryClient = new QueryClient({ defaultOptions: { queries: { - gcTime: (1000 * 60 * 60) * 3, // 3 hours + /** + * Infinity, this needs to be greater than + * or higher than the `maxAge` + */ + gcTime: Infinity, staleTime: (1000 * 60 * 60) * 1 // 1 hour, users can manually refresh stuff too! } }