Skip to content

Commit

Permalink
feat: only set refetchInterval for entries
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jun 18, 2024
1 parent 7372034 commit ac8381d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/renderer/src/lib/query-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const queryClient = new QueryClient({
defaultOptions: {
queries: {
gcTime: Infinity,
refetchInterval: 1000 * 60 * 10,
retryDelay: 1000,
retry(failureCount, error) {
console.error(error)
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/queries/entries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const useEntries = ({
return lastPage.data.at(-1)!.entries.publishedAt
},
initialPageParam: undefined,
refetchInterval: 1000 * 60 * 10,
})

export const useEntriesPreview = ({ id }: { id?: string }) =>
Expand Down

0 comments on commit ac8381d

Please sign in to comment.