Skip to content

Commit

Permalink
chore(frontend): Optimize requests made to the backend (#6168)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanape authored Jan 9, 2025
1 parent b45fc52 commit 3eae2e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/entry.client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ const queryClient = new QueryClient({
},
}),
defaultOptions: {
queries: {
staleTime: 1000 * 60 * 5, // 5 minutes
gcTime: 1000 * 60 * 15, // 15 minutes
},
mutations: {
onError: (error) => {
toast.error(error.message);
Expand Down

0 comments on commit 3eae2e2

Please sign in to comment.