feat: simplify caching — TanStack Query as single source of truth (#6075)

This commit is contained in:
Thomas authored and GitHub committed 2026-07-03 16:33:03 +02:00
1 parent a5ec880eec
commit f19033e0d5
187 files changed
+1013 -4712

No files matched your search

+5 -10
View File
@@ -23,16 +23,11 @@ interface TimetableWidgetInnerProps {
}
const TimetableWidgetInner = ({ station, baseUrl }: TimetableWidgetInnerProps) => {
const { data: timetable } = clientApi.widget.timetable.getTimetable.useQuery(
{
baseUrl,
stationId: station.value,
limit: 10,
},
{
staleTime: 60 * 1000,
},
);
const { data: timetable } = clientApi.widget.timetable.getTimetable.useQuery({
baseUrl,
stationId: station.value,
limit: 10,
});
const t = useScopedI18n("widget.timetable");
return (