Skip to content

Commit

Permalink
chore(frontend): Optimize requests made to the backend (All-Hands-AI#…
Browse files Browse the repository at this point in the history
  • Loading branch information
amanape authored and AlexCuadron committed Jan 13, 2025
1 parent 53ddbc7 commit da0006d
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 da0006d

Please sign in to comment.