mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-21 13:30:11 -06:00
caching changes
This commit is contained in:
7
App.tsx
7
App.tsx
@@ -59,13 +59,6 @@ export default function App(): React.JSX.Element {
|
||||
<PersistQueryClientProvider
|
||||
client={queryClient}
|
||||
persistOptions={{
|
||||
|
||||
/**
|
||||
* Bust old data in favor of newer
|
||||
* data
|
||||
*/
|
||||
buster: uuid.v4(),
|
||||
|
||||
persister: clientPersister,
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,7 +19,8 @@ export const queryClient = new QueryClient({
|
||||
* or higher than the `maxAge`
|
||||
*/
|
||||
gcTime: Infinity,
|
||||
staleTime: (1000 * 60 * 60) * 1 // 1 hour, users can manually refresh stuff too!
|
||||
staleTime: (1000 * 60 * 60) * 1, // 1 hour, users can manually refresh stuff too!
|
||||
refetchOnWindowFocus: false,
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -18,5 +18,4 @@ const clientStorage = {
|
||||
|
||||
export const clientPersister = createSyncStoragePersister({
|
||||
storage: clientStorage,
|
||||
throttleTime: 0 // MMKV is FAST
|
||||
});
|
||||
Reference in New Issue
Block a user