Skip to content

Commit

Permalink
add 15m staletime to airports/aircraft/flight
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix committed Aug 26, 2024
1 parent 5705483 commit 49b87f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/src/components/util/state/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function useAirports() {
airports: [],
metropolitanAreas: [],
},
staleTime: 1000 * 60 * 15,
});
}

Expand All @@ -29,6 +30,7 @@ export function useAircraft() {
},
retry: 5,
initialData: [],
staleTime: 1000 * 60 * 15,
});
}

Expand All @@ -41,5 +43,6 @@ export function useFlight(flightNumber: string, airport: string, date: DateTime<
return body;
},
retry: 3,
staleTime: 1000 * 60 * 15,
});
}

0 comments on commit 49b87f1

Please sign in to comment.